Last post Oct 16, 2006 10:16 PM by Gordon-Freeman
Oct 12, 2006 10:03 PM|p0257138|LINK
I have difficulty to pass a thai word as parameter in url string. In my page, i will click on a Thai alphabet ก with the html tag below:
<A class=alphaList href="search.cgi?fields=art_field2&keyword=ก&cat=48&search_subcats=1">ก</A>
So when the page is being redirected, i will get this URL: localhost/hitachi_thai/exec/search.cgi?fields=art_field2&keyword=?&cat=48&search_subcats=1
the Thai alphabet keyword will become ? instead of ก , therefore i failed to search the content i want with the ? as keyword.
What i need to do in order to get the url string below with Thai alphabet as my search keyword.
I am using this charset for my page,charset=windows-874.
Thanks alot for kindly reply.
Oct 13, 2006 04:13 AM|Gordon-Freeman|LINK
Hi~ Basically we have 2 resorts:
The unreadable way: Use default utf-8 and
Server.UrlDecode(), and this works for almost all situations
The readable way: Set the
<globalization> section in web.config to your culture and encoding, but to be readable it requires both the server and users' OS supporting the specific encoding
Oct 13, 2006 05:00 AM|p0257138|LINK
Thanks you so much. I will try to get it done !
Oct 13, 2006 06:01 AM|p0257138|LINK
According to user requirement, the page must be save as HTML format.
So I am not able to make use of this HttpServerUtility.UrlEncode Method.
Is there any alternative way to pass a thai/chinese character to URL string as parameter?[:^)]
Oct 16, 2006 10:16 PM|Gordon-Freeman|LINK