PDA

View Full Version : How to safe russian text in a CGI textfile


misterff
12-23-2002, 11:43 AM
I'm finishing a website in several languages but I'm stuck with the RUSSIAN version.

The russian text is passed to me in Word but I don't know how to safe russian text in a plain text file in Unix format. Copying and pasting it in my texteditor (TextEdit), obviously doesn't work. And copying the perl code into Word and safe the file as plain text doesn't work either (it transforms the russian characters into '?').

Any sugestions?

[FF]

misterff
12-23-2002, 12:25 PM
I found a solution for my own problem. I just wanted to post it for all you people who encounter the same problem:

The russian text I had was in Word in some kind of strange font. What I did was just safe the whole document as HTML to see how Word saves this russian text.
It simply converts all the russian characters to HTML codes (like & #1042; and & #1086;). Just copy the codes and paste them into your cgi script, and that's it.

Hope you'll find it usefull...

[FF]