Help with string encoding

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
jasongr
Forum Contributor
Posts: 206
Joined: Tue Jul 27, 2004 6:19 am

Help with string encoding

Post by jasongr »

Hi people

I have a string with the following content:

Code: Select all

$buffer = "árboles genealógicos gratis";
Which is the sentence árboles genealógicos gratis encoded (The statement means Genealogy family trees in Spanish)
I am looking for a PHP function that will conver the content of the buffer above to:

Code: Select all

$buffer = "árboles genealógicos gratis";
This is just an example. My input buffer may contain other encoded characters that will also need to be decoded.

any suggestions?

Jason
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

html_entity_decode() or, potentially: viewtopic.php?t=36549&highlight=make%2Autf%2A
Post Reply