Hello Forum,

 

I have a datalist with 2 hyperlink . The hyperlink  linkto same form with different parameter value.

When I set Datalist hyperlink  parameter is  chinese character ,I get unreadable codes in the form。But when I use the coloum ( chinese character value) as parameter , the passed character is correct.

I use chrome web console get the http request information. I found the toStatus parameter haven't be encoded . The URL is "http://124.89.194.122:8080/jw/web/userview/projectLifecycle/projectPortal//proToStatus?id=31862d23-c0a86a80-1beed090-63ffdd6f&toStatus=%26%2321806%3B%26%2321518%3B"

I compare the situation when the coloum ( chinese character value) as parameter. The URL is like "http://124.89.194.122:8080/jw/web/userview/projectLifecycle/projectPortal//addWork?projectNo=ID-000003&status=%E5%94%AE%E5%90%8E"

"%26%2321806%3B%26%2321518%3B"  and "%E5%94%AE%E5%90%8E" is the same value of "售后". The utf16 code is "\u552E;\u540E;"

DecimalUTF-8UTF-16UTF-32
21806E5 94 AE 552E0000552E
DecimalUTF-8UTF-16UTF-32
21518E5 90 8E 540E0000540E

I think this is a feature loss, please help me.

 

Chrome web console catch:

Remote Address:124.89.194.122:8080
Request URL:http://124.89.194.122:8080/jw/web/userview/projectLifecycle/projectPortal//proToStatus?id=31862d23-c0a86a80-1beed090-63ffdd6f&toStatus=%26%2321806%3B%26%2321518%3B
Request Method:GET
Status Code:200 OK

Response Headers
view parsed
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: private
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Transfer-Encoding: chunked
Date: Wed, 15 Jul 2015 03:01:33 GMT

Request Headers
GET /jw/web/userview/projectLifecycle/projectPortal//proToStatus?id=31862d23-c0a86a80-1beed090-63ffdd6f&toStatus=%26%2321806%3B%26%2321518%3B HTTP/1.1
Host: 124.89.194.122:8080
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
Referer: http://124.89.194.122:8080/jw/web/userview/projectLifecycle/projectPortal//project_list
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=504A88220FBA967AA7CE4ECAE7BF4CF9; helpGuide=false; lastFolderUri=/reports/%E6%9C%88%E6%8A%A5; filtersPopularity=%7B%22resourceTypeFilter%22:%7B%22resourceTypeFilter-reports%22:1,%22undefined%22:0%7D%7D
Query String Parameters
view parsed
id=31862d23-c0a86a80-1beed090-63ffdd6f&toStatus=%26%2321806%3B%26%2321518%3B

 

  • No labels