1.修改源码的解析配置文件的解码器(开始默认为:CharsetDecoder::getISOLatinDecoder->修改为UTF-8):代码位置如下。properties.cpp文件的load方法下:
void Properties::load(InputStreamPtr inStream) {
Pool pool;InputStreamReaderPtr lineReader(
new InputStreamReader(inStream, CharsetDecoder::getUTF8Decoder()));
LogString contents = lineReader->read(pool);
properties->clear();
PropertyParser parser;
parser.parse(contents, *this);
}
2.重新编译,生成lib.dll两个文件
3.最后把自己项目中的配置文件的编码也设置为utf-8.