Closed JorikMA closed 4 months ago
Please watch issue #482. We will provide an encoding option so that users can open customized encoded sql files.
After that feature is delivered, you can read the sql file with "utf_8_sig" encoding so that the first 3 BOM characters are auto removed. That way, it won't throw an exception when we feed the sql text to the parser.
When trying to read some .sql scripts I ran into the following error:
Unable to lex characters: 'CREATE' Line 1, Position 1: Found unparsable section: 'CREATE VIEW ...
As I did not see any special characters I opend the file in an hex editor and found: EF BB BF as first 3 "characters". Apparently this is the Byte Order Mark or BOM (see: https://stackoverflow.com/questions/44098326/ef-bb-bf-at-the-beginning-of-json-files-created-in-visual-studio)
UTF-8 encoded file: `PS C:\Users\username> sqllineage -f "C:\Users\username\OneDrive - company\Bureaublad\test.sql" -d tsql Statements(#): 1 Source Tables: