Skip to content

Add support for Windows UTF-8 version of R #269

Closed
@SpecterShell

Description

An experimental build of R using UTF-8 as native encoding on Windows has been released recently, and here is the instruction: https://svn.r-project.org/R-dev-web/trunk/WindowsBuilds/winutf8/ucrt3/howto.html

I'm on Windows 10 20H2 and has set $LANG to zh_CN.UTF-8. After setting the codepage to 65001(UTF-8), the encoding in Rterm successfully switches to UTF-8, but the encoding in radian remains unchanged.

image

In most of the time the terminal and the graph can still handle CJK characters properly. But sometimes some messy codes show, like the red text in the screenshot.

I thought this issue came from Python itself, so I set $PYTHONUTF8 to 1 to force Python to use UTF-8, and ran python -m radian instead of radian. However it doesn't work for radian. I also tried to directly change the encoding in radian, and then it crashed.

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