function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
suresh dupadasuresh dupada 

How to Remove accents in apex??

ex :: below string contain accents
( Et ça sera sa moé  )

How Do i remove accents in apex, I need out put string as below
 ( Et ca sera sa moe )
NagaNaga (Salesforce Developers) 
Hi Suresh,

Try and explore Matcher and Pattern (regular expressions) methods in Apex. If not, I would recommend exloring it to reduce the number of instructions.

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_classes_pattern_and_matcher_pattern_methods.htm|StartTopic=Content%2Fapex_classes_pattern_and_matcher_pattern_methods.htm|SkinName=webhelp

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_classes_pattern_and_matcher_pattern_methods.htm|StartTopic=Content%2Fapex_classes_pattern_and_matcher_pattern_methods.htm|SkinName=webhelp

Please let me know if this helps

Best Regards
Naga kiran