+ 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;' => '�',