writefln and ASCII

Serg Kovrov kovrov at no.spam
Tue Sep 12 06:07:09 PDT 2006


Marcin Kuszczak wrote:
> char[] fromMBSz(char* s, int codePage = 0);  // local encoding to UTF-8
> char* toMBSz(char[] s, uint codePage = cast(uint)0); // UTF-8 to local
> encoding

Thanks Marcin, fromMBSz() is just fine.

In my case I do not care for correct codepage - just want to dump 
contents to console as part of debug trace.

-- 
serg.



More information about the Digitalmars-d-learn mailing list