Reading UTF32 files

Tim Locke root at
Fri Aug 4 04:48:58 PDT 2006

On Fri, 4 Aug 2006 14:16:49 +1000, Derek Parnell
<derek at> wrote:

>On Fri, 04 Aug 2006 00:38:18 -0300, Tim Locke wrote:
>> How do I read an UTF32 file? Stream only seems to support UTF8 with
>> readLine and UTF16 with readLineW.
>> Thanks
>Read them in 4-byte chunks and, depending on endian-ness, convert to a
>ulong then cast to a dchar then append to a dchar[] ... simple!

Thanks. I will try that.

More information about the Digitalmars-d-learn mailing list