Transfer special character

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
panprasath
Forum Newbie
Posts: 19
Joined: Thu Jul 24, 2008 3:35 am
Location: Chennai,Tamilnadu,India

Transfer special character

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Transfer special character

Post 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.
Post Reply