Skip to content

Get the encode characters issue when run osc_cli command #12

Open
@lynch0227

Description

@lynch0227

Hi Guys,

I want to create a comment using mandarin language, but got the below errors:
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 238-242: ordinal not in range(256)
Could you fix issue to support the multiple language?

And I have another question, I have to specify the COLLATE 'utf8mb4_general_ci' attribute in column level,
but I got the parse sql errors:
ERROR 2017-05-25 14:37:13.314 INVALID_SYNTAX: Fail to parse: foo.sql Line: enroll_reason VARCHAR(1024) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',, Column: 57
Failed to parse SQL, unsupported syntax: Expected ")" (at char 634), (line:17, col:57) Most likely is not a valid CREATE TABLE sql. Please make sure it has correct syntax and can be executed in MySQL: Line: enroll_reason VARCHAR(1024) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',, Column: 57
Failed to parse SQL, unsupported syntax: Expected ")" (at char 634), (line:17, col:57)

Could you please fix it?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions