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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting unicode characters to ISO entities (ie é to é)

Status
Not open for further replies.

acarruth

Programmer
Joined
Sep 7, 2003
Messages
34
Location
US
Does anyone know of a library or function that takes as input some text, and converts all special characters (accented characters, umlauts, etc) into the ISO entities (the HTML characters that start with &)?

Or, alternatively, how do I reference unicode characters in javascript? For instance, if i wanted to do:

if ( 'é' == unicode representaion of é )
{
}

i've read that it is \uXXXX, but that doesn't seem to work.. any ideas!?

Thanks,

Allan
 
Figured out the syntax, thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top