Skip to content

Issue with Chinese Characters in Data Displayed by tibble in radian (Windows) #520

@FeiyueLi

Description

@FeiyueLi

Description:

I encountered an issue with radian on Windows where Chinese characters inside tibbles are displayed incorrectly, showing garbled symbols, while comments and normal console output display Chinese correctly.

System Information:

  • OS: Windows 10
  • radian version: [radian version: 0.6.15]
  • Python version: [python 3.12]
  • R version: 4.5.1
  • VS Code terminal using "r.rterm.windows": "D:\\Python312\\Scripts\\radian.exe"

Issue Details:

  • When I print comments or character strings directly, Chinese displays correctly in radian.
  • When I print tibbles (especially with the tibble package and pillar formatting), Chinese characters in data columns appear garbled (mojibake).
  • The same data displays correctly in the default R terminal in both VS Code and Windows Console.
  • Base R printing via print(as.data.frame()) works correctly inside radian.

Reproducible Example:

ccaN <- tibble::tibble(name = c("李强", "张伟", "王芳"))
ccaN  # Garbled in radian
print(as.data.frame(ccaN))  # Correct in radian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions