Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re[2]: Character Set Issues (windows vs. Unix)

Anton Tagunov

2003-09-20

Replies:

Hello Hans!

Sorry about responding with significat delays, I'm reading
the list only periodically, in gulps

AT>  String s = rs.getString(x);
AT>  char c = s.charAt(y);
AT>  out.print((int)c);

HL> Thats exactly what I am doing.
HL> .... same result

What result? What codes do you get for non-ascii characters
on Unix and on Windos boxes from this test?

HL> I have even tried
HL> Reader reader = r.getCharacterStream("field_name");
HL> and then printing out the the char values of the stream

I guess r is of the type ResultSet (sorry, Chris Rolfe,
you seem to have misunderstood somthing). Okay, I beleive there
is not any difference between ResultSet.getString() and
ResultSet.getCharacterStream(), it will be enough to test
either of them

HL> Its the most bizarre thing i have seen.
HL> ...and driving me insane! :(

I like to invetigate these matters :-)
So, waiting for more info from you!

Anton


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.