Skip to content

Japanese column names are garbled in Go-based sqlcmd output #596

@nvd50129

Description

@nvd50129

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions