REWARD: chr() not working for Chinese "Locale"
From: John Cody (newsgroups_at_noospammmax-soft.com)
Date: 10/04/04
- Next message: robert: "SQL Server Ce"
- Previous message: AS: "Resize 32x32 icon to 16x16"
- Next in thread: Peter: "Re: REWARD: chr() not working for Chinese "Locale""
- Reply: Peter: "Re: REWARD: chr() not working for Chinese "Locale""
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 4 Oct 2004 11:43:26 -0400
Hi,
I have a real stumper of an issue...I am creating a string, character by
character by doing a:
Do
S = S & CHR(X)
Loop while ....
The value of X will randomly vary from 0 to 255 (FF). And, with my
Smartphone's "Locale" setting to "English", the string is built of the
proper individual characters representing the specified values for X.
But, if a user's Smartphone has their "Locale" set to "Chinese", the CHR()
function doesn't appear to create the proper characters for X values above
127 (highest ANSI code). For example, if the sequential values of X are 237,
207, 45.....if I then loop through the string and read the ASC() of each
individual character, I will get 31, 31, 45 when the "Locale" is Chinese. If
I instead use CHRB(x), then the resulting ASC() values will be 169,169, 45
for a "Chinese" locale (NOTE: using the alternate chrb() method still works
fine on "English" locales)
I'm thinking that this is related to some Unicode issue, and that the
characters representing codes 128-255 are invalid for a Chinese "locale".
But, this is just a guess.
This is a real-pain of an issue to fix because I can not reproduce the
error - I have to keep "bugging" a [very helpful] Hong Kong user to test
different trace/debug versions on their "Chinese" local phone to see if it
fixes the issue, but this is not fair to them...
So, I am offering a reward of a FREE copy for one of my products:
http://www.omnisoft.com/products.asp
For anyone who first posts the solution to this issue...
Thanks a bunch!
-John Cody
- Next message: robert: "SQL Server Ce"
- Previous message: AS: "Resize 32x32 icon to 16x16"
- Next in thread: Peter: "Re: REWARD: chr() not working for Chinese "Locale""
- Reply: Peter: "Re: REWARD: chr() not working for Chinese "Locale""
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|