reading an unicode file
Chris Nicholson-Sauls
ibisbasenji at gmail.com
Fri May 11 07:06:55 PDT 2007
jicman wrote:
> Thanks BB.
>
> I should stop using char and do more wchars. But that is a whole new world for
> me. :-)
>
> Interesting enough, I did this command to the string,
>
> char[] n = std.string.replace(s,"\000","");
>
> and now strings show correctly. The problem is that I work with accented
> characters, which will probably break something. I am going to have to look into
> this, but for now, it's working for this task.
>
> Thanks for the help.
Even though it increases sizes, I find using dchar provides vast convenience in cases
where you /know/ you want|need to support various sorts of character outside ASCII. Of
course you ought to experiment to see if wchar is fine for your use case.
-- Chris Nicholson-Sauls
More information about the Digitalmars-d-learn
mailing list