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
Vaclav LukasekVaclav Lukasek 

force.com ide unicode issue in new version

I have same code uplodade by version 28 a new version (33) of Force.com ide
new version implements special chars bad way:
following sample is not working due all special chars are missinterpreted
 
map<String, String> EscapeList = new map<String, String>{
'&ndash;' => '–',
'&#8226;' => '•',// middle dot, bullet
'&euro;' => '€',
'&nbsp;' => ' ',
};
String val = '€ •';
for (String el:EscapeList.keySet()){
   val = val.replace(EscapeList.get(el), el);
}
Vaclav LukasekVaclav Lukasek
result after sync with server is:
                   '&ndash;' => '�',
                    '&#8226;' => '�',// middle dot, bullet                   
                    '&euro;' => '�',
                    '&nbsp;' => '�',