Reading UTF32 files
Derek Parnell
derek at nomail.afraid.org
Thu Aug 3 21:16:49 PDT 2006
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!
--
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
4/08/2006 2:15:37 PM
More information about the Digitalmars-d-learn
mailing list