解决乱码问题
This commit is contained in:
parent
c1998be89c
commit
b420a7af9a
|
@ -104,11 +104,13 @@ public class GoviewProjectData implements Serializable {
|
||||||
public String getDataToStr() {
|
public String getDataToStr() {
|
||||||
byte[] bs= getContent();
|
byte[] bs= getContent();
|
||||||
String str="二进制转换错误";
|
String str="二进制转换错误";
|
||||||
try {
|
/*try {
|
||||||
str = new String(bs, "utf-8");
|
str = new String(bs, "utf-8");
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
str = new String(bs);
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue