problem in handling extended characters

I am recompiling some old code. got a problem in handling some special characters.got a compilation error: error C2001:newline in constant
the code looks like
std::map<std::string,unsigned char>  M_refCharMap 
M_refCharMap["&cent;"]='¢';
M_refCharMap["&pound;"]='£';

I believe this code was compiled successfully before, because this app has been used for a few years. Now all the developers have been gone, I cant get help from them.
BTW, I am using VS2003.
Anyone has an idea ?
Thanks..

even put the characters (value >128) into simple char variables, got the same errors.
std::string sa1('£');
unsigned char a1='£';
char a2='¥';
A ';' is missing after M_refCharMap on the first line
it is related to the OS setting. in Windows, my region and language was set to "Chinese". then I got this problem. when I changed it to English, this problem gone.
Interesting !
Topic archived. No new replies allowed.