Hi all,

I have checked that if you deploy CAS Server in linux (in windows works
fine...) and you try to retrieve attributes with latin characters
(ISO-8859-1) (for example, the user full name: Joaquín Pérez Núñez), with
the Java JASIG CAS Client, I get an error...

To solve it, in the Java JASIG CAS Client , class
AbstractCasProtocolUrlBasedTicketValidator (method 
retrieveResponseFromServer), you have to specify that you want to read latin
characters:

protected final String retrieveResponseFromServer(final URL validationUrl,
final String ticket) {
.......
   final BufferedReader in = new BufferedReader(new
InputStreamReader(connection.getInputStream(),"ISO-8859-1"));
.......
}

These are my 2 cents :)

Regards,
Diego
-- 
View this message in context: 
http://www.nabble.com/Tip%3A-How-to-retrieve-attributes-with-latin-characters-%28ISO-8859-1%29-tp24787621p24787621.html
Sent from the CAS Users mailing list archive at Nabble.com.


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to