Search this blog

mercredi 19 janvier 2011

Perl, CGI and UTF-8 encoding character set

To allow UTF-8 characters on web pages created by the Perl CGI module use for example the following code:
my $q = new CGI;
print $q->header(-charset=>'utf-8');

Aucun commentaire:

Enregistrer un commentaire