cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Schlaepfer" <>
Subject Unicode Umlauts/SQLTransformer
Date Wed, 31 Mar 2004 14:23:44 GMT
Made the observation that SQLTransformer, doesn't care
that much about character Encoding:

String retval = SQLTransformger.getStringValue(rs.getObject(i));
and then returns a new String((byte[]) object)

Would it make any sence to introduce there a
new String((byte[]) object, "CHARACTER_SET") which could be UTF8.

Just a suggestion, as I wrote a simple class testing the
connection to a MySQL 4.1.1 DB with UTF8 setting. And
there I used

byte[] col_1_b = rs.getBytes(1);
new String(col_1_b, "UTF8");

Any comments?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message