You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "朱力(梧空)" <wu...@alibaba-inc.com> on 2018/11/07 09:29:53 UTC
Does calcite support chinese?
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)
thanks
Re: Does calcite support chinese?
Posted by Ted Xu <fr...@gmail.com>.
Hi,
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 朱力(梧空) <wu...@alibaba-inc.com> 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)
>
> thanks