carcassonne has asked for the wisdom of the Perl Monks concerning the following question:
Not:
How can I use French characters in POD files like, for instance, in the following lines, so that once converted to HTML they are OK:
=head1 Filières =head1 Objet: Création
I use emacs. When I open the POD file in hex mode, the extended characters are represented using two bytes. For instance 'è' is 0xC3 0xA8 (or 0xA8 0xC3) and not an ASCII chars above 128. So I guess some kind of encoding goes on.
Do I have to give other arguments when using pod2html to convert the file ?
Thanks !
UPDATE
Found it.
The HTML file generated by pod2html has to be fixed by adding the following line after the DOCTYPE declaration:
<meta http-equiv="Content-type"content="text/html;charset=UTF-8" />
There must be a way to do this automatically every time pod2html is called. Maybe a wrapper...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POD and foreign characters
by TimToady (Parson) on Nov 28, 2006 at 19:24 UTC | |
by carcassonne (Pilgrim) on Nov 28, 2006 at 20:04 UTC | |
|
Re: POD and foreign characters
by shmem (Chancellor) on Nov 28, 2006 at 15:25 UTC | |
by carcassonne (Pilgrim) on Nov 28, 2006 at 15:34 UTC | |
by Joost (Canon) on Nov 28, 2006 at 15:41 UTC | |
by davorg (Chancellor) on Nov 28, 2006 at 15:42 UTC |