Skip to content

Encoding issue (utf-8) of German umlauts on Windows #1231

@dsvanidze

Description

@dsvanidze

I have encoding issues when I use German special letters in the Shiny app on Windows. It renders them incorrectly in a browser and also in the terminal output.

To reproduce, app/app.py file has just two lines of code:

from shiny.express import input, ui, render
print("üäöß")

When I run this code with Python python app/app.py, it prints the letters correctly. However, when I run the Shiny App with shiny run --reload --launch-browser app/app.py, it prints the following üäöß.

I just use print() here, but exactly the same happens with the string, when I use Shiny components to show text. This issue does not occur, when I run the app on WSL.

How can I fix the problem on Windows so that German text can be rendered correctly?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions