Hi there,
My ColdFusion (MX7 on IIS 6) 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
Edit: Further research has lead me to believe the issue may related to IIS rather than ColdFusion, but my original query still stands.
Further edit
The result of GetPageContext().GetRequest().GetRequestUrl().ToString()
is http://www.example.com/search.cfm/searchterm/?????
so it appears the issue goes fairly deep.