Project

General

Profile

« Previous | Next » 

Revision 5756

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

View differences:

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