Hi,

Going through the parser literal grammar, there seems to be a way to
specify the character encoding like *_UTF16'台北'*

Here are the supported character encodings found in Parser code (Not sure
what the SQL standard is).

ISO-8859-1
UTF-16BE
UTF-16LE
UTF16

The code you pointed shouldn't affect your queries as the constant is used
in referring to the table/field names in INFORMATION_SCHEMA which are
always in ASCII format.

Thanks
Venki

On Mon, Mar 16, 2015 at 8:37 PM, Wang Darrell <[email protected]>
wrote:

> When I send a sql with some Chinese character
> It just tell me SEVERE: org.eigenbase.util.EigenbaseException: Failed to
> encode '台北' in character set 'ISO-8859-1'
>
> I think this problem relate to
>
>
> https://github.com/apache/drill/blob/9e164662f5296f7048c880c40bc551030fb58cca/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/parser/DrillParserUtil.java
>
> this java.
>
> Is there any way I can force the sql parser charset to UTF-8 or other way
> to solve this problem?
>

Reply via email to