This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Replace Acute Accent in a String Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Replace Acute Accent in a String" Watch "Replace Acute Accent in a String" New topic
Author

Replace Acute Accent in a String

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I want to replace any e that has the accent ' above it to just an e. I believe it is referred to as the Acute Accent (accent aigu). Could I use the replace(char,char) method? If so, how do I enter the accented e?
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4118
    
    2

Unicode charts are at http://www.unicode.org/charts/
Seems like you need either '\u00e9' (é) or '\u00c9' (É)
HTH
------------------
Junilu Lacar
Sun Certified Programmer for the Java� 2 Platform


Junilu - [How to Ask Questions] [How to Answer Questions] [MiH]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Replace Acute Accent in a String
 
Similar Threads
Character Normalization in XML
force users to use english character set
Can you use Regular Expressions in Java?
WA #1.....word association
Can get the Form Feed "\f" to work!