I see. thank you all. it seems that I have to provide a UI to let user select which locale he wants to use. Is it a common implementation ? I was thinking of checking character encoding in my application so that I can use the correct locale.
On 5/24/05, Jason Lea <[EMAIL PROTECTED]> wrote: > From the java docs: > > getCharacterEncoding > > public java.lang.String getCharacterEncoding() > > Returns the name of the character encoding used in the body of this > request. This method returns null if the request does not specify a > character encoding > > Returns: > a String containing the name of the chararacter encoding, or > null if the request does not specify a character encoding > > > So, the browser might not be sending the character encoding in the > request. I think browsers won't send the encoding when default encoding > is used. Some browsers might not send it at all. > > > Lixin Chu wrote: > > >Hi, > >I always get null from request.getChaaracterEncoding(), do not know why. > > > >I am using Tomcat 5.5.7, Struts 1.1. Tested IE 6.0 and FireFox. Which > >ever encoding I select in browser, my servlet always reprots as null > >from the above call. > > > >thanks for any info! > >li xin > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > Jason Lea > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]