Y
Yohan N. Leder
Using Perl 5.8.8, I'm trying to found the best way to support UTF-8
everywhere about outputted literal strings (from source code) toward
generated UTF-8 HTML in browser.
I've done this :
- Saved source code (containing the literal strings) as UTF-8
- Added a "use utf8;" line in code
- Added a "binmode(STDOUT, ":utf8");" line in code
And accentuated character doesn't appear well. If I save source code as
ISO-8859-1, all sounds right. So, I'm wondering if they didn't been UTF-
8 encoded twice.
What the best combination ? Do I have to remove the binmode line,
knowing source code is already in UTF-8 ? Does the use utf8 unuseful ?
Is it best to not save source as UTF-8 ? What ?
everywhere about outputted literal strings (from source code) toward
generated UTF-8 HTML in browser.
I've done this :
- Saved source code (containing the literal strings) as UTF-8
- Added a "use utf8;" line in code
- Added a "binmode(STDOUT, ":utf8");" line in code
And accentuated character doesn't appear well. If I save source code as
ISO-8859-1, all sounds right. So, I'm wondering if they didn't been UTF-
8 encoded twice.
What the best combination ? Do I have to remove the binmode line,
knowing source code is already in UTF-8 ? Does the use utf8 unuseful ?
Is it best to not save source as UTF-8 ? What ?