go-sqlcmd icon indicating copy to clipboard operation
go-sqlcmd copied to clipboard

`Japanese column names are garbled in Go-based sqlcmd output`

Open nvd50129 opened this issue 4 months ago • 1 comments

Bug: Japanese column names are garbled in Go-based sqlcmd output

Environment

  • OS: Windows 11 Pro
  • sqlcmd version: Go-based sqlcmd v1.8.2
  • Terminal: cmd.exe (code page 65001)
  • Font: MS Gothic / Consolas

Reproduction

SELECT 1 AS 件数

Expected
The column name "件数" should be displayed correctly.

Actual
The column name is garbled (e.g., "縺。繧峨↑").

Notes
This issue does not occur in the legacy ODBC-based sqlcmd.exe.
Even with UTF-8 code page and proper fonts, the output is incorrect.
This affects Japanese users significantly and should be considered a localization bug.
Please consider addressing this issue or providing a workaround.

nvd50129 avatar Jul 11 '25 13:07 nvd50129