Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Question on Internet Explorer handling chr(169) in an Chinese locale PC

Thread Tools

Question on Internet Explorer handling chr(169) in an Chinese locale PC

Posts: n/a

I have the following piece of ASP code
================================================== ====

' Set XArray with Data object
csiSDataTrsfr="G" & csiPCKTD
csiSDataTrsfr = csiSDataTrsfr & "document" ..
================================================== ====

On a normal English locale PC, the above code will set csiSDataTrsfr to
"G<copyright_symbol>document .. i.e. chr(169) is the "copyright_symbol"

On a "Simplified Chinese locale PC, csiSDataTrsfr will be set to
"G<chinese_char>ocument .. Beacuse IE treated the chr(169) i.e. the
copyright symbol with the following "d" from the word "document" as a
Chinese character

Which cause a lot of problem in the Internet Explorer. I wonder if there is
any way I can force the IE to treat the chr(169) and chr(174) as a single
byte European char? On the other hand, is there a way to override the
Chinese locale setting within IE to use European locale when handling the
above piece of code?

I have tried to use the Session.codepage, response.charset="Western-1251"
statements etc, none of them are working.

Any help would be greatly appreciated.
Best regards,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer 8: C:\Program Files\Internet Explorer\iexplore.exe vs C:\Program Files (x86)\Internet Explorer\iexplore.exe Nathan Sokalski Windows 64bit 16 02-22-2010 08:31 AM
Re: List of locale values for locale.setlocale() under Windows Gabriel Genellina Python 0 02-18-2009 12:00 AM
Create C++ std::locale without changing C locale C++ 4 08-26-2008 01:15 PM
i18n problem, involving Locale.getDisplayLanguage and Locale.getDisplayCountry Maurice Hulsman Java 1 07-25-2004 06:11 PM
locale.nl_langinfo(RADIXCHAR) vs locale.localeconv()['decimal_point'] Jeff Epler Python 2 08-31-2003 02:18 PM