Forum Navigation
Streaming Unicode from a file
Posted: 11/01/07 15:04:58Hi,
I've been trying to write code that reads Unicode text from a conduit and decodes it into dchars. But I find it kind of hard to deal with the various tango functions associated with this, and the need to buffer not yet decoded chars, etc. I just keep getting very sneaky bugs, losing characters, etc.
Does anyone have working code for decoding UTF, ideally without the need to load the whole file into memory?
Thanks, Sebastian