[jboss-dev-forums] [Design of JBoss Portal] - JBoss Portal + CAS cause unreadable charactors when changing

Shi Yusen do-not-reply at jboss.com
Wed Apr 8 14:54:13 EDT 2009


For example, change a user's firstname in Chinese and submit, the info will be changed to unreadable charactors and stored in db.

I added this line in the very beginning in CASAuthenticationValve.invoke and fixed the problem:
request.setCharacterEncoding("UTF-8");

Perhaps there are other ways to overcome this problem. If not, it would be better to add such a line to the source code.

Regards,

Shi Yusen/Beijing Langhua Ltd.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224464#4224464

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224464



More information about the jboss-dev-forums mailing list