Skip to content

Windows code page 65001 (UTF-8) not supported by Jython #404

Description

@wfouche

Changing the Windows code page to UTF-8 using command

chcp 65001

causes Jython print the following warning at start-up.

C:\> jbang run jython-cli@jython
org.python WARNING console: Failed to install 'org.python.util.JLineConsole': java.nio.charset.UnsupportedCharsetException: cp65001.
org.python WARNING console: Failed to install 'org.python.util.JLineConsole': java.nio.charset.UnsupportedCharsetException: cp65001.
Jython 2.7.4 (tags/v2.7.4:3f256f4a7, Aug 18 2024, 16:49:39)
[OpenJDK 64-Bit Server VM (Microsoft)] on java21.0.9
Type "help", "copyright", "credits" or "license" for more information.
>>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions