Revision 5756
Added by ben leinfelder almost 14 years ago
src/edu/ucsb/nceas/metacat/DBQuery.java | ||
---|---|---|
1232 | 1232 |
if(qformat.toLowerCase().trim().equals("xml")) |
1233 | 1233 |
{ |
1234 | 1234 |
byte[] b = rs.getBytes(3); |
1235 |
fielddata = new String(b, 0, b.length); |
|
1235 |
fielddata = new String(b, 0, b.length, MetaCatServlet.DEFAULT_ENCODING);
|
|
1236 | 1236 |
} |
1237 | 1237 |
else |
1238 | 1238 |
{ |
Also available in: Unified diff
use UTF-8 encoding when getting bytes from the DB and converting them into a string.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2495