October 09, 2004 Unicode | ||||
---|---|---|---|---|
| ||||
Hello! --------------------------- #define UNICODE #define _UNICODE #include <tchar.h> #include <wchar.h> #include <windows.h> .. .. WCHAR txt[]=L"Hello"; --------------------------- Compiler generates incorrect unicode-string if I use any characters with codes > 0x7F Seems like compiler makes unicode-string just by expanding every byte of source ansi-string to word. It is ok only for english. |
October 10, 2004 Re: Unicode | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Troshin | "Denis Troshin" <weiv@mail.ru> wrote in message news:ck9mtl$183n$1@digitaldaemon.com... > Hello! > > --------------------------- > #define UNICODE > #define _UNICODE > #include <tchar.h> > #include <wchar.h> > #include <windows.h> > .. > .. > > WCHAR txt[]=L"Hello"; > --------------------------- > Compiler generates incorrect unicode-string if I use any characters > with codes > 0x7F > Seems like compiler makes unicode-string just by expanding every byte > of source ansi-string to word. It is ok only for english. To embed unicode characters in strings, the only portable way to do it is with \uxxxx. |
Copyright © 1999-2021 by the D Language Foundation