Russian and other national languages support
Denis Koroskin
2korden at gmail.com
Tue Feb 3 09:49:11 PST 2009
On Tue, 03 Feb 2009 20:13:38 +0300, zorran <zorran at tut.by> wrote:
> Russian language not working
> in comments and strings by default
> with ANSI coding (code page)
>
> Compiler write error - "invalid UTF-8 sequence"
>
> ==============
> void main()
> {
> string s = "Что-то по
> русски"; // some text in russian
> printf("hello, world!"); //
> Здравствуй,
> мир!
> }
> ==============
>
> (D version 1.039)
>
> in Delphi, C#, and many C++ compilers - All OK!
> Why?
> it can reduce popularity D!
> Russian text not needs two-byte code-page! its not Chinese!
Just save your file as UTF-8 and you are done.
More information about the Digitalmars-d-bugs
mailing list