java - How to specify the character encoding of Mybatis? -


here problem.
there fact table in kylin has column named "name".
when access table using jdbc, ok.
use mybatis connect same jdbcurl.
mess when read column "name".
don't know why.

it turns out problem maven.the "jdbc program" started directly in ide, while "mybatis program" started "mvn test".the problem solved adding property in pom.xml showed below.

<argline>-dfile.encoding=utf-8</argline> 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -