mickeypearce / vscode-oracle-format

PL/SQL formatter (using SQLcl)
https://marketplace.visualstudio.com/items?itemName=mp.vscode-oracle-format
11 stars 4 forks source link

chinese character cant display normally after format #17

Open fugelong opened 5 years ago

fugelong commented 5 years ago

chinese character cant display normally if there are chinese comments in sql sourcecode.

mickeypearce commented 5 years ago

Can you provide a test case text to reproduce?

UPDATE: I used a chinese word to reproduce (心神), any idea on how to use "fs.writeFile" to correctly save chinese characters?

vectoy commented 5 years ago

Test Chinese comments:

COMMENT ON TABLE TEST_TABLE IS
    '这是一个测试文本';

Formatting result:

COMMENT ON TABLE test_table IS
    '这是�?个测试文�?';
XavRsl commented 5 years ago

Same behaviour with french characters

Thanks.

Xavier

mickeypearce commented 3 years ago

@fugelong @vectoy @XavRsl what encoding of file do you use for your text?