Problem using unicode in URLs with cgi.PATH_INFO in ColdFusion
Posted
by Loftx
on Stack Overflow
See other posts from Stack Overflow
or by Loftx
Published on 2010-05-04T10:23:57Z
Indexed on
2010/05/04
10:28 UTC
Read the original article
Hit count: 270
Hi there,
My ColdFusion (MX7) site has search functionality which appends the search term to the URL e.g. http://www.example.com/search.cfm/searchterm
.
The problem I'm running into is this is a multilingual site, so the search term may be in another language e.g. ???????
leading to a search URL such as http://www.example.com/search.cfm/???????
The problem is when I come to retrieve the search term from the URL. I'm using cgi.PATH_INFO
to retrieve the path of the search page and the search term and extracting the search term from this e.g. /search.cfm/searchterm
however, when unicode characters are used in the search they are converted to question marks e.g. /search.cfm/??????
.
These appear actual question marks, rather than the browser not being able to format unicode characters, or them being mangled on output.
I can't find any information about whether ColdFusion supports unicode in the URL, or how I can go about resolving this and getting hold of the complete URL in some way - does anyone have any ideas?
Cheers,
Tom
© Stack Overflow or respective owner