Nicolas De Loof wrote:
Can someone explain me what's wrong in HTTP / servlet API about char encoding :

I'm using <html:link> to build a link with parameters, whose values use french chars ('Ã', 'Ã' ...)
I need to set useLocaleEncoding to get values in my servlet (that is not a struts action) using getParameterMap.
If I do not set this attribute, I get values with strange strings that looks like UTF-8 sequences.


Is they're no strict standard for URI encoding ? Is tomcat servlet API wrong about this ?

I don't know about the specific behaviour of tomcat, but the answer to the first question is No: the only standard is us-ascii. If a browser needs to send characters that are outside us-ascii, it will always encode them in the same encoding as the page that contains the link / form. If you are doing this on the server side, just make sure you do the necessary encoding/decoding while sending and receiving so that it works!


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to