• Post Reply Bookmark Topic Watch Topic
  • New Topic

Character encoding not working for j_security_check

 
arovinth rajaraman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have developed an applicaiton with user login

i am using jboss custom login module for user authentication

iam passing the username and password to j_security_check servlet. It works perfect for normal user names but when using FRENCH characters it fails

till Before passing it to j_security_check the username is same what i typed, it changes to some character when j_secuity_check is called with the j_username and j_password .

it means j_secrity_check is not working on UTF-8 character encoding

how to configure character encoding for j_security_check servlet. i Tried even setting filters but not working for servlets.

iam using struts and jboss.

please help me to configure character encoding for servlets iam stuck up..
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

That's an interesting problem. Since WebLogic has a custom solution to this, I am guessing that there is no standard way to specify the character encoding to be used.
 
Parwaneh Wilb
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched the whole afternoon to find a solution (first I only searched how to enable "Umlaute", but Unicode is better than ISO-8859-1 ;-) )...

For me unicode login works, if I put

<Valve className="org.apache.catalina.authenticator.FormAuthenticator" characterEncoding="UTF-8"/>

in my tomcat server.xml, inside the <Context ...>... </Context>

Hope this helps someone.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jm009", please check your private messages for an important administrative matter.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!