toString vs. toUtf8
Walter Bright
newshound1 at digitalmars.com
Mon Nov 19 13:40:42 PST 2007
Phobos (and D) has undergone some evolution in the thinking about
unicode strings, and it certainly has a few anachronisms in its names.
But I think we've evolved to the point where going forward, we know what
to do:
char[] => string
wchar[] => wstring
dchar[] => dstring
These are all unicode strings. Putting non-unicode encodings in them,
even temporarily, should be discouraged. Non-unicode encodings should
use ubyte[], ushort[], etc.
More information about the Digitalmars-d
mailing list