How are you dealing with Extended Character sets?

29 Jan 2010

I am unable to compile my code when trying to place certain chars into a string.

Example: Add(""p,√,_, ,¤, , ,␣,")

I get the following compile time error:

""Invalid multibyte character sequence" in file"

How can I get past this issue?

29 Jan 2010

I wouldn't rely on values of any characters above 128. You can't control the encoding used by the online compiler when compiling your source, so it's best not use anything beyond simple ASCII. If you know for sure that the receiver can handle whatever encoding you need, use byte arrays or hexadecimal escapes if you need them inside a string literal.

29 Jan 2010 . Edited: 29 Jan 2010

Thanks for the response. I just realized that the messages are warnings and not errors. The code does compile. I also noticed that when I press "F5" the IDE automatically converts the unknown into hexadecimal escapes (the ones it recognizes at least).

Unfotunately, that somewhat defeats to purpose of what I am trying to do, but its better than nothing.

Thanks for your help Igor.