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 = "&#1063;&#1090;&#1086;-&#1090;&#1086; &#1087;&#1086;  
> &#1088;&#1091;&#1089;&#1089;&#1082;&#1080;"; // some text in russian
> 	printf("hello, world!"); //  
> &#1047;&#1076;&#1088;&#1072;&#1074;&#1089;&#1090;&#1074;&#1091;&#1081;,  
> &#1084;&#1080;&#1088;!
> }
> ==============
>
> (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