Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unicode to html entity representation.

Status
Not open for further replies.

dymadarlin

Programmer
Jun 26, 2003
41
0
0
CA
I have a unicode string and I want to change it to html entities.

For example "?????" should be translated into
"ت ه ر ا ن"

Please let me know how it is possible in PHP and please let me know what this form of data is called, html entities?


Thanks in advance.
 
Thanks but, it converted that function converted it to

"تهران"

It needs to be converted to ""ت ه ر ا ن"


تهران
 
I don't believe there is a PHP builtin function to do exactly that. However, printf() can output the hexadecimal equivalent of a decimal number. Maybe that will get you close to what you need.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top