Re: Does calcite support chinese?
You could use optional charset literal here. E.g.,
> upsert into t1(c1,c2,c3) values(_UTF16'中文',2,2);
For some reason Calcite currently only support UTF-16 for Unicode. Here
CALCITE-2619 is an on going work to support more charsets like UTF-8,
GB2312 and GBK.
On Wed, Nov 7, 2018 at 5:30 PM 朱力(梧空) <wukong.zl@xxxxxxxxxxxxxxx> wrote:
> dear guys,
> does calcite support chinese? in my case, what should i do ?
> 0: jdbc:lindorm:100.81.140.116:30024:test> upsert into t1(c1,c2,c3)
> values('中文',2,2); Error: Error while executing SQL "upsert into
> t1(c1,c2,c3) values('中文',2,2)": Failed to encode '中文' in character set
> 'ISO-8859-1' (state=,code=0)