• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getCharacterEncoding / getLocale

 
Siamak Saarmann
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have problem with above methods. I appereciate your help.

1- I have a problem with getCharacterEncoding.

If I do not use setCharacterEncoding I always get "null" from getCharacterEncoding.

2- If I setLocale on reponse or request I get desired locale if I use getLocale. But if I do not setLocale and just want to see what Locale is set on user's browser, I always get en_US.

Are above things normal?

Regards,
Mac
 
leon fan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you set other language rather than english as prefer language in your browser when you try to access your jsp by browser?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Siamak"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic