Page 1 of 1

Transfer special character

Posted: Wed Oct 15, 2008 2:18 am
by panprasath
my index page having one test box....After click the submit button it will go to dispay page.....that dispay the texbox vaue.....

I enter the textbox value as "Sé" that display in the display page as Sé.......


how to currect this problem

Re: Transfer special character

Posted: Wed Oct 15, 2008 2:38 am
by requinix
And thus begins my reign of terror over this forum...

Have you set a page encoding? To need to tell the browser that your page is encoded in UTF-8, either with PHP

Code: Select all

header("Content-Type: text/html; charset=utf-8");
or HTML

Code: Select all

<html>
<head>
...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
...
</head>
Or run all your form input through utf8_decode.