I wrote a script that randomly display text links. How can I make thos elinks in some other charset (different from the web pages')?
I.e.: My web page has charset linke this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
I want the text for the links to be displayed in charset=windows-1250.
I'm using this Perl code to display links (text and URL is taken from a MySQL database):
print "Cache-Control: no-cache\n";
print "Content-type: text/html;\n\n";
print qq~
<a href="$url" target="_new" class="link">$text</a>
~;
Thanks
I.e.: My web page has charset linke this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
I want the text for the links to be displayed in charset=windows-1250.
I'm using this Perl code to display links (text and URL is taken from a MySQL database):
print "Cache-Control: no-cache\n";
print "Content-type: text/html;\n\n";
print qq~
<a href="$url" target="_new" class="link">$text</a>
~;
Thanks