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.