Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Links and charset?

Status
Not open for further replies.

c4n

Programmer
Mar 12, 2002
110
SI
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=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-2&quot;>


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 &quot;Cache-Control: no-cache\n&quot;;
print &quot;Content-type: text/html;\n\n&quot;;
print qq~
<a href=&quot;$url&quot; target=&quot;_new&quot; class=&quot;link&quot;>$text</a>
~;

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top