如果在kylin的ldap.user.searchPattern中需要包含中文的过滤条件,则实际执行的时候会出现乱码问题。我现在是通过修改KylinConfig,将加载properties文件的代码改为使用inputstreamReader,在reader的参数中指定utf-8来解决:
File cfile = new File(KylinConfig.getKylinHome() + "/conf/" +
KylinConfig.KYLIN_CONF_PROPERTIES_FILE);
Properties p=new Properties();
p.load(new BufferedReader(new InputStreamReader(new
FileInputStream(cfile), "utf-8")));
-----------------------------------------------------
赵天烁
Kevin Zhao
[email protected]<mailto:[email protected]>
珠海市魅族科技有限公司
MEIZU Technology Co., Ltd.
广东省珠海市科技创新海岸魅族科技楼
MEIZU Tech Bldg., Technology & Innovation Coast
Zhuhai, 519085, Guangdong, China
meizu.com