On 6/28/07, Daniel Alheiros <[EMAIL PROTECTED]> wrote:
I'm in trouble now about how to issue queries against Solr using in my "q"
parameter content in Russian (it applies to Chinese and Arabic as well).
The problem is I can't send any Russian special character in URL's because
they don't fit in ASCII domain, so I'm doing a POST to accomplish that.
You can send unicode in URLs (it's done as the UTF-8 bytes percent encoded).
http://www.ietf.org/rfc/rfc3986.txt
But a POST should work too. You just need to make sure the
Content-type contains the character encoding, and that it actually
matches what is being sent.
If this is a browser doing the POST, it can be a bit tricky to get it
to post UTF-8... basically, I think the browser uses the charset of
the HTML page containing the form when it does the POST (so make sure
that's UTF8).
Shut down Solr and use something like netcat (nc -l -p8983) to see
exactly what is being sent.
-Yonik