Cyrillic web pages with Perl and MySQL

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm trying to build some Russian web pages using Perl and MySQL. Toward
that end, I have created a simple test case, which does not seem to
work. Any help would be appreciated.

I can successfully create a table in MySQL 4.1 with these commands
(this creates a table with three rows; the three columns in each row
are 1) an integer primary key, 2) a russian word, and 3) an english


The web page prints out the table correctly, but the Cyrillic words
come out as "?????".

I can use the same web browser to look at other Cyrillic web pages, and
those display fine.

I also tried the same thing using  windows-1251 Cyrillic, but the
results were the same.

Any helpful suggestions from those with experience would be most

Re: Cyrillic web pages with Perl and MySQL

Instead of using "direct" Cyrillic string use its Unicode presentetion
for example Cyrillic "Privet" would be presented as

your Perl script should write
print "<html>\n";
print "<head>\n";
print "</head>\n";
print "<body>\n";
print "<font color=\"#ff0000\" size=\"3\">\n";
print "&#1055;&#1088;&#1080;&#1074;&#1077;&#1090;\n";
print "<\font>\n";
print "</body>\n";
print "</html>\n";

No charset metas is required IExplorer and Netscape recognize
Cyrillic/Greek/Hebrew automatically and correct.

to convert Cyrillic string to codes use editor DELO

Format menu->Code Conversion->Symbols to HTML

Example of Cyrillic page with such presentation is

Site Timeline