XiaoMi / soar

SQL Optimizer And Rewriter
Apache License 2.0
8.67k stars 1.32k forks source link

allow specify `-query` file charset or encoding detect intelligently #107

Open martianzhang opened 5 years ago

martianzhang commented 5 years ago

Please search the existing issues for relevant feature requests, add upvotes to pre-existing requests.

Feature Description

SOAR output suggestions in UTF-8 by default, but when -query file is encoded by GBK or other charsets, the SQL sample will be printed in mass.

Use Case(s)

soar -query file.sql -query-charset gbk

default -query-charset should be intelligent.

Ref: