G
Guest
How do I copy the content of a string in one encoding (in my case big5) to a
char array (unmanaged) of the same encoding?
I try the following
String line[] = S"123æ°´æ³¥";
char buffer[200];
for(int i=0; i<line->get_length(); i++)
{
buffer = (char) line->Chars;
}
It works fine for the first 3 Ascii characters, but gets messed up for the
next 2 Chinese characters. What is wrong here?
char array (unmanaged) of the same encoding?
I try the following
String line[] = S"123æ°´æ³¥";
char buffer[200];
for(int i=0; i<line->get_length(); i++)
{
buffer = (char) line->Chars;
}
It works fine for the first 3 Ascii characters, but gets messed up for the
next 2 Chinese characters. What is wrong here?