digitalmars.D - some problems with cyrilic output
- bobef (13/13) Aug 05 2004 i try to use d to write a cgi app...
- Walter (7/20) Aug 05 2004 Sure. The trick is to save your source file in UTF format. Odds are that...
- J C Calvarese (12/25) Aug 05 2004 I think the problem could be any number of things.
- bobef (1/1) Aug 05 2004 thanks... it works fine if i set ie's encoding to unicode...
- Sebastian Beschke (6/8) Aug 06 2004 There is a meta tag in HTML that lets you specify the encoding:
i try to use d to write a cgi app... when i try to write some cyrilic characters it works fine with files but when i writef same string internet explorer displays *something* (that does not look like my string :)... i do the same in c++ and the output is ok. also if i output a cyrilic string to file with c++ (m$vc++6) and then open this file with d (FileMode.Out) the output is like in the ie (broken)... someone know something about this? if it can help i use: editplus to edit .d and save files as utf-8 apache 2 for windows internet explorer 6
Aug 05 2004
"bobef" <bobef_member pathlink.com> wrote in message news:cetvr2$1vsi$1 digitaldaemon.com...i try to use d to write a cgi app... when i try to write some cyrilic characters it works fine with files but when i writef same string internet explorer displays *something* (that does not look like my string :)... i do the same in c++ and the output is ok. also if i output a cyrilic string to file with c++ (m$vc++6) and then open this file with d (FileMode.Out) the output is like in the ie (broken)... someone know something about this?Sure. The trick is to save your source file in UTF format. Odds are that you are saving it in the format where the upper 128 bytes are indices into the current "code page".if it can help i use: editplus to edit .d and save files as utf-8 apache 2 for windows internet explorer 6You'll also need to tell your display program (explorer) that your data is in UTF format.
Aug 05 2004
In article <cetvr2$1vsi$1 digitaldaemon.com>, bobef says...i try to use d to write a cgi app... when i try to write some cyrilic characters it works fine with files but when i writef same string internet explorer displays *something* (that does not look like my string :)... i do the same in c++ and the output is ok. also if i output a cyrilic string to file with c++ (m$vc++6) and then open this file with d (FileMode.Out) the output is like in the ie (broken)... someone know something about this? if it can help i use: editplus to edit .d and save files as utf-8 apache 2 for windows internet explorer 6I think the problem could be any number of things. Do you have trouble viewing other Cyrillic websites? You might need to install an IE language pack from windowsupdate.microsoft.com. But that's probably not your problem, so I'll guess again... Maybe you need to set up Apache to output the correct encoding type. Also, you could try running another browser (such as Mozilla Firefox) on the web site and see if the page looks different. From your description, the problem could be almost anything. I'm just throwing out ideas to consider. If you post some D code (or even C++ code), someone might spot a problem there, too. jcc7
Aug 05 2004
thanks... it works fine if i set ie's encoding to unicode...
Aug 05 2004
bobef wrote:thanks... it works fine if i set ie's encoding to unicode...There is a meta tag in HTML that lets you specify the encoding: <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> Haven't tried it, but the browser should then interpret the page as UTF-8. Saves you (and your user) from setting the encoding manually. Sebastian
Aug 06 2004