Thanks for your advice Scott. I've checked every place I can find and
I cannot find which place I'm using the wrong charset.
Each time I input the Chinese character in login page, the system said
auth failed and redirect back to login page, and the netID I input get
screwed.
Finally I solved this problem by adding a filter into CAS:
<filter>
<filter-name>CheckCharacterEncodingPerRequest</filter-
name>
<filter-class>
net.chinaedu.edupass.idp.support.SetCharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CheckCharacterEncodingPerRequest</filter-
name>
<url-pattern>/*</url-pattern>
</filter-mapping>
- Li Wei Nan
Le 2008-4-29 à 下午8:27, Scott Battaglia a écrit :
Li,
CAS should support whatever you pass along. I would check if the
application server / JVM are both configured to support the
characters.
-Scott
On Tue, Apr 29, 2008 at 3:29 AM, Li Wei Nan <[EMAIL PROTECTED]>
wrote:
Hi Everyone,
We have some problem when users use Chinese character as their netId.
I think it's a config problem somewhere. Here's our environment:
- cas pages are UTF-8
- data in datasource are UTF-8 encoded
- linux env is: LANG=en_US.UTF-8
- dataSource config: <value>jdbc:postgresql://localhost:5432/
edupass</value>
Does anyone has the similar problem and sovled it before?
Thanks,
- Li Wei Nan
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
--
-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas