On Fri, May 14, 2010 at 04:41:34AM -0700, Edwin Leuven wrote:
> On Fri, May 14, 2010 at 4:33 AM, rgheck <[email protected]> wrote:
> > The os variable here is an odocstream. So we can create a temporary
> > odocstringstream, write to that
>
> ah, that was what i was looking for. i was fiddling with a
> ostringstream but that obviously didn't work...
This is not going to work if an encoding change occurs. Something like
os << setEncoding("ISO-8859-1");
fails to set the proper encoding if the stream is not a file stream.
See the comments in docstream.h. Already been there :(
--
Enrico