473,394 Members | 1,916 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,394 software developers and data experts.

QueryString with truncated chinese strings

In an Asp.Net application on an chinese operative system, the string (in
chinese characters) returned by querystring function is truncated.

example:

in querystring I set Title= ??

C# code:
a = HttpContext.Current.Request.QueryString["Title"];

after the call the last char is cutted out
a =?

this doesn't happen for all strings, and does not depend on the string
length

I use a javascript for combine the url:
location.href = 'HistoryPage.aspx?Title=??';

when I use a no-chinese OS it works properly
please help

Lara
Nov 19 '05 #1
1 1937
Lara Grillo wrote:
In an Asp.Net application on an chinese operative system, the string
(in chinese characters) returned by querystring function is truncated.

example:

in querystring I set Title= ??

C# code:
a = HttpContext.Current.Request.QueryString["Title"];

after the call the last char is cutted out
a =?

this doesn't happen for all strings, and does not depend on the string
length

I use a javascript for combine the url:
location.href = 'HistoryPage.aspx?Title=??';

when I use a no-chinese OS it works properly
please help

Lara


This usually means that the query string's encoding and the expected
request encoding don't match. What requestEncoding did you specify in
web.config?

Cheers,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 19 '05 #2

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

Similar topics

2
by: carroll | last post by:
Does wxPython handle Unicode strings (specifically, Unihan strings, with Chinese characters) easily? I'm writing an app to help me explore the Chinese character sets, and can do basic displays...
2
by: Hans | last post by:
Is it possible to put a unicode string on a querystring? How do I escape/unescape this? I read values from a dropown list which may have any UTF-8 character (chinese, greek or whatever). If it...
2
by: Marcin | last post by:
i want to pass XML data in querystring from one to another asp page. it is about 10000 characters long, i cannot use FORM because it is already nested in one. What i do is i have IFRAME and im...
8
by: pabv | last post by:
Hello all, I am having a few issues with encoding to chinese characters and perhaps someone might be able to assist. At the moment I am only able to see chinese characters when displayed as...
4
by: sylvain | last post by:
I create an encrypted string and when this string is pass into a querystring to an ASP.Net page I have an error message that said that this querystring is potentialy dangerous. Here is an...
12
by: Steven Nagy | last post by:
Hi all, I have to do a website in chinese! Basically I just need to know how to output chinese characters. I am assuming its very easy, but have never done it before. I can however do simple...
19
by: many_years_after | last post by:
Hi,everyone: Have you any ideas? Say whatever you know about this. thanks.
6
by: Simon Gare | last post by:
Hi all, is there anyway of separating a string by either a space or + sign, I have an sms.asp page that receives a string in this format below ...
2
by: baskar1900 | last post by:
Sir, we are trying to pass chinese character through querystring in ASP and we are using chinese windows 2003 server Operating System. when we tried to retrieve using Request.QueryString () we...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.