fix: 尝试修复支持数据库字符集

This commit is contained in:
taojinlong 2022-06-25 23:35:07 +08:00
parent a5d31401e4
commit 72cdab3c06

View File

@ -1313,8 +1313,7 @@ public class ExtractDataService {
private final static String handleCharset = "\tif(tmp != null){\n" + private final static String handleCharset = "\tif(tmp != null){\n" +
" \t\t\ttry {\n" + " \t\t\ttry {\n" +
" \t\tSystem.out.println(new String(tmp.getBytes(\"Datasource_Charset\"), \"Target_Charset\"));\n" + "\t\t\t\tget(Fields.Out, filed).setValue(r, new String(tmp.getBytes(\"Datasource_Charset\"), \"Target_Charset\"));\n" +
"\t\t\t\tget(Fields.Out, filed).setValue(r, new String(tmp.getBytes(\"ISO-8859-1\"), \"GBK\"));\n" +
" \t\t}catch (Exception e){}\n" + " \t\t}catch (Exception e){}\n" +
"\t\t}"; "\t\t}";