Quantcast
Viewing all articles
Browse latest Browse all 9063

Special characters replacement

Hi All,

 

I am facing a problem while replacing special characters in java mapping.

requirement is: we ned to replace the characters as given below:

à       a      À  A

â       a        A

ç       c      Ç  C

é       e      É  E

è       e      È  E

ê       e      Ê  E

ë       e      Ë  E

î         i       Π I

ï         i       Ï  I

ô       o      Ô  O

ù       u      Ù  U

û       u      Û  U

 

the problem is, when i execute the java map , it changes the encoding automatically to UTF 8 which convert these characters to some weired combionations for exp:

é is represented as é, in UTF 8

And i had to search for these characters i.e to replace Ê :  a= a.replaceAll("Ê","E");

 

// é,è,ë,ê = é,è,ë,ê

// í,ï = Ã,ï

// ó,ô = ó,ô

// ù,û = ù,û

//   Ä = Ä

//   Ö = Ö

// Ü = Ãœ

// ê = ê

 

 

is there any simple way i can maintain the ISO encoding in the java map or replace these special characters with normal english characters?


Viewing all articles
Browse latest Browse all 9063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>