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

Accents parsing

Status
Not open for further replies.

sandeepmur

Programmer
Dec 14, 2003
295
PT
Hi,

I have a list of users obtained from a db in one frame and after selecting some, are passed onto another frame. The problem is with the usernames which have accents..

For example; a name such as "André" in the left frame appears as "Andrý" in the right frame..

I am trying to do something like this:

String namefromDb = "André (HP)"; // for example...
namefromDb = namefromDb.replaceAll("é","é"); //é is the html entity code..

But even after doing this, I still have the problem..

any suggestions ?
TIA
 
hmm...are you specifying the character set in the document head?

put this in the <head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top