這篇文章將為大家詳細(xì)講解有關(guān)如何處理BIRT直接讀取mysql4.0 iso8859_1亂碼問題,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
修改birt源碼
[@more@]
package org.eclipse.birt.core.format;
public class StringFormatter{
......
public String format( String str )
{
if ( trim && str != null )
{
str = str.trim( );
}
try{
str = new String(str.getBytes("ISO8859_1"),"GBK");
}catch (Exception e){
e.printStackTrace();
}
if ( formatPattern.equals( "Unformatted" ) ){ //$NON-NLS-1$
return str;
}
關(guān)于“如何處理BIRT直接讀取mysql4.0 iso8859_1亂碼問題”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。