microsoft / go-sqlcmd

The new sqlcmd, CLI for SQL Server and Azure SQL (winget install sqlcmd / sqlcmd create mssql / sqlcmd open ads)
https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility
MIT License
325 stars 57 forks source link

Sqlcmd could support some codepage options #111

Open shueybubbles opened 1 year ago

shueybubbles commented 1 year ago

We haven't yet implemented this switch:

-f codepage | i:codepage[,o:codepage] | o:codepage[,i:codepage]

The charmap package has a bunch of Windows code page decoders and encoders we could leverage to implement this switch.

shueybubbles commented 9 months ago

go-sqlcmd also does not convert files from the system code page; it assumes a file with no BOM is UTF8