to knight_qmh(辉)
画图时在BEAN字体转换如下:
public String enc_gb(String s){
try{
String temp_p = s;
byte[] temp_t = temp_p.getBytes("iso8859-1");
String temp = new String(temp_t);
return temp;
}
catch(Exception e){
return null;
}
}
}
其它jsp中没有指定字体
画图时在BEAN字体转换如下:
public String enc_gb(String s){
try{
String temp_p = s;
byte[] temp_t = temp_p.getBytes("iso8859-1");
String temp = new String(temp_t);
return temp;
}
catch(Exception e){
return null;
}
}
}
其它jsp中没有指定字体
编辑 tomcat中的文件startup.sh
加入
若:LANG=zh 则:error:Font specified in font.properties not found [-sun-song-medium-r-normal--*-%d-*-],且图片中的中文显示不出
若:LANG=C 或去掉此句则:不提示错误信息,且图片中的中文显示乱码。