How do I convert string like1089; т &to normal

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
nadavvin
Forum Commoner
Posts: 68
Joined: Wed Sep 06, 2006 6:05 am

How do I convert string like1089; т &to normal

Post by nadavvin »

How do I convert string like1089; т &to normal string?

I want to search in mysql database when the user fill a form.

But I get the post data of the forms like &# 1090; , how do I convert it to normal string.

When I write the full sql query in the code it is work.

I try the following functions but none of them help:

urldecode, rawurldecode, htmlspecialchars_decode,convert_uudecode


What should I do?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

nadavvin
Forum Commoner
Posts: 68
Joined: Wed Sep 06, 2006 6:05 am

Post by nadavvin »

feyd wrote:viewtopic.php?t=36549&highlight=utf may be of interest.
It is work now, When I add the header encoding.

thanks.

I thought that firefox use utf8 as the default...
Post Reply