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
Shweta GargShweta Garg 

I have changed Browser language settings.from then string methods are not working properly.

Hello All,

I have changed google chrome language settings from english to French.from then String methods in my apex class are not working properly.
Here is my code sample.
for(String s:valuearray){
            String s9 = s;
            system.debug('startvalue!!'+s+'******'+s.remove(' ')+'!!!!'+s.deleteWhitespace()+'@@@'+s.replace(' ',''));

  String sx = '675 75 56454 ';
            System.debug('testing!!'+sx.remove(' '));


here valuearray is the list of semicolon separated string .for example(4567 89 0;Q1).I need to remove space from it.I tried all these methods remove,deletewhitespace and replace. but no method  is working.and this is strange when  i am hardcoding the value.String methods are working.

Please help me.


Shweta GargShweta Garg
Hi piyush_soni,

Remove method is fine . but it is not working when i changed google chrome input settings from english to French.

Hi Shweta,

Can share your VF and apex code? It helps to solve your problem.