in reply to encode charset
You have to take a few steps to get utf-8 working:
1) You need to set up STDOUT: binmode STDOUT, ':encoding(UTF-8)';
2) Send a header with the correct charset: print "Content-Type: text/html charset=utf-8\n\n";
3) ensure that your HTML doesn't contain a http-equiv meta tag with a different charset.
To test it, open your page with Firefox, press Ctrl+I, and check which encoding it thinks the page is in.
And make sure to read perluniintro, perluniintro and perlunifaq.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: encode charset
by Akoya (Scribe) on Mar 06, 2008 at 21:48 UTC | |
by moritz (Cardinal) on Mar 07, 2008 at 08:24 UTC |