Forum Moderators: phranque

Message Too Old, No Replies

charset problem

charset problem on web page

         

dizyn

7:51 am on Feb 28, 2007 (gmt 0)

10+ Year Member



i tried utf8_encode() to encode ISO strings to utf-8 and tried to show print them but no luck.

I also tried to use both these lines but its not working:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">

i tried:
php:

utf8_encode ("Pe&#351;in al&#305;&#351;veri&#351;lerinize <font color=\"ff0000\">%10 indirim</font> uygulanmaktad&#305;r.");

its gives me following output:
Pesin alisverislerinize %10 indirim uygulanmaktadir.

just wanted to know if there is any way so that i can make same as its in string for utf-8

jdMorgan

2:11 pm on Feb 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The META tags are only used for locally-accessed files (that is, after someone saves your page to their hard drive, they are used by the client's browser for offline viewing).

Have you set the server character encoding? See Apache AddDefaultCharset [httpd.apache.org]

Jim