[cgiapp] Problem displaying French, sometimes
Mike Tonks
fluffymike at googlemail.com
Wed Sep 10 03:50:20 EDT 2008
Hi Ron,
Your script should send a response header as follows:
Content-Type: text/html; charset=UTF-8
and in your HTML source you should have a matching meta-tag:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
If you're using CA then the response header can be defined by:
$self->header_add(-charset => 'utf-8');
or if you're using sessions then you need something like
$self->session->header_add(-charset => 'utf-8');
The output from the test script looks good - nice to see the utf8
survived an email round trip!
I'll attach the test_utf8.txt file - it's just to test that utf8 data
can be read from a file correctly.
The next part will be more important for you - getting the data from
the database correctly. As I mentioned you will need to edit the
script at that point to account for your database setup and table
names, etc.
mike
-------------- next part --------------
UTF8 Test data read from file
Czech and Slovak characters: Å¡ Å¥ ž ľ Ä Ä Ä Å Å Å¯ ĺ ŠŤ Ž Ľ Ä Ä Ä Å Å Å® Ĺ
Polish characters: Å Ä
ż Ä Ä Å Å Åº Å Ä Å» Ä Ä Å Å Å¹
Romanian characters: Ä Ä Å Å Å¢ Å£
Croatian and Slovenian characters: Å¡ Ä Å¾ Ä Ä Å Ä Å½ Ä Ä
Hungarian characters: ŠŠŰ ű
German characters: Ã, ä, Ã, ö, Ã, ü, Ã
Russian alphabet: абвгдеÑжзийклмно пÑÑÑÑÑÑ
ÑÑÑÑÑÑÑÑÑÑ ÐÐÐÐÐÐÐÐÐÐÐ ÐÐÐÐÐÐРСТУФ ХЦЧШЩЬЫЪÐЮЯ
Special Byelorussian and Ukrainian characters: Ð Ñ Ð Ñ Ò Ò
Special Serbian and Macedonian characters: Ð Ð Ð Ð Ð Ñ Ñ Ñ Ñ Ñ
Arabic: بâجâدâﻫâÙâزâØâØ·âعâÙâصâÙâرâØ´âتâØ«âØ®âØ°âضâظâغâ
More information about the cgiapp
mailing list