On 6/28/07, Yonik Seeley <[EMAIL PROTECTED]> wrote:
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).

You can also ensure the browser sends an utf8 encoded post by
<form accept-charset="UTF-8" ...
It works even if the page the form is in is not an UTF-8 page.


--
Jerome Eteve.
[EMAIL PROTECTED]
http://jerome.eteve.free.fr/

Reply via email to