473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Request.Querystring returning incorrect unicode characters in Japanese Internet Explorer 6

phl
Hello,

I have aspx(say page.aspx) page which uses javascript to submit a form
reload with some unicode characters,upon an button event e.g

page.aspx?param=value

I get this value in the codebehind and access it via
Request.Querystring property.

I have a problem where if the characters of value are Japanese. the
following happens:

IE6 US version - I can get the value correctly from Request.QueryString
in code behind.
IE6 Japan version - The value in code behind I get back from
Request.QueryString have the last 2 bytes corrupted.

Does anyone know what is happening? I am pretty sure it's the Japanese
client thats corrupting the characters at this stage. I have check that
the javascript generated url is correct before it gets submited to the
server. What could be happening in server that may corrupt it in the
response to the client?

Also - I have set the request/response encoding to UTF8 and the file
encoding to "SHIFT-JIS" , I can't change this setup since a lot of the
other pages seems to be finely balanced on this setup.

Thanks
-phl

Oct 17 '06 #1
2 4988
Thus wrote phl,
Hello,

I have aspx(say page.aspx) page which uses javascript to submit a form
reload with some unicode characters,upon an button event e.g

page.aspx?param=value

I get this value in the codebehind and access it via
Request.Querystring property.

I have a problem where if the characters of value are Japanese. the
following happens:

IE6 US version - I can get the value correctly from
Request.QueryString
in code behind.
IE6 Japan version - The value in code behind I get back from
Request.QueryString have the last 2 bytes corrupted.
Does anyone know what is happening? I am pretty sure it's the Japanese
client thats corrupting the characters at this stage. I have check
that the javascript generated url is correct before it gets submited
to the server. What could be happening in server that may corrupt it
in the response to the client?
This usually happens when the client side uses the wrong character encoding.
Did you check whether the browser is configured to use a fixed encoding?

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Oct 17 '06 #2
phl
seems like there's some sort of javascript problem. When I use to the
escape function on the Japanese characters. It works in Japanese IE
without problems. Is there a problem with javascript in Japanese?

Oct 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Thomas Heller | last post by:
I was trying to track down a bug in py2exe where the executable did not work when it is in a directory containing japanese characters. Then, I discovered that part of the problem is in the...
1
by: Avnish | last post by:
Hi, I am looking for some form of validation for all the alphanumeric characters in the entire unicode range e.g. the validation should also accept japanese characters but should restrict...
3
by: Supratim | last post by:
Hi, For past few weeks I am working on a function that would take encoded Unicode characters from query string of http requests and then decode them back to Unicode numbers. I have full success...
3
by: WindAndWaves | last post by:
Hi Folks I am wondering if any of you has any experience with unicode files created from Access. I am using an access database to write HTML files. Now, for some of these files, I use...
2
by: Navanith | last post by:
Hi, I wrote a simple aspx page that dumps query string to the browser. Following is the globalization section in web.config <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
4
by: Lu | last post by:
Hi, i am currently working on ASP.Net v1.0 and is encountering the following problem. In javascript, I'm passing in: "somepage.aspx?QSParameter=<RowID>Chèques</RowID>" as part of the query...
40
by: apprentice | last post by:
Hello, I'm writing an class library that I imagine people from different countries might be interested in using, so I'm considering what needs to be provided to support foreign languages,...
8
by: mario | last post by:
I have checks in code, to ensure a decode/encode cycle returns the original string. Given no UnicodeErrors, are there any cases for the following not to be True? unicode(s, enc).encode(enc)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.