Hi Nick,
For my last posted question, I have found some more things.
The problem is , I hold a high-order char in a var (in any script) (0x81-0xFF), then call the function "setVariable". And when i get it with "getVariable" the return value is a empty string ''.
This is the test code :
For "0x01" - "0x80" and "0xFF" the code work well, but it will return "" for "0x81" - "0xFE".
The problem only happened when the char number is odd number.
Please have a check.
PS. I downloaded the source of mushclient V4.43, but i can't understand them. (I am not familiar with C and Window programming :( )
Thanks.
Ron
For my last posted question, I have found some more things.
The problem is , I hold a high-order char in a var (in any script) (0x81-0xFF), then call the function "setVariable". And when i get it with "getVariable" the return value is a empty string ''.
This is the test code :
highOrderChar = utils.fromhex ("80");
SetVariable("test", highOrderChar);
result = GetVariable("test");
print ("before set ", utils.tohex (highOrderChar))
print ("after set ", utils.tohex (result))
For "0x01" - "0x80" and "0xFF" the code work well, but it will return "" for "0x81" - "0xFE".
The problem only happened when the char number is odd number.
Please have a check.
PS. I downloaded the source of mushclient V4.43, but i can't understand them. (I am not familiar with C and Window programming :( )
Thanks.
Ron