New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF8 encoding messy code #5193
Labels
C-bug
Something isn't working
Comments
RustPython (almost) only support utf-8 and ascii. Would you check if your source code is a correct utf-8 file? If you keep having the problem, please upload the source code file too. It will be really helpful. Welcome to the magnificent Rust Python 0.3.0 interpreter 😱 🖖
RustPython 3.12.0
Type "help", "copyright", "credits" or "license" for more information.
>>>>> print("测试中文")
测试中文
>>>>> ❯ ./target/debug/rustpython test_utf8_zh.py
测试中文 |
My Environment
# Install rust
scoop install main/rust
# Install the latest RustPython
cargo install --git https://github.com/RustPython/RustPython File encodingI have ensured the encoding of the Python script file is utf8 Other related issueI have also found the issue in the interactive panel D:\Desktop
λ RustPython
Welcome to the magnificent Rust Python 0.3.0 interpreter � �
RustPython 3.12.0
Type "help", "copyright", "credits" or "license" for more information.
>>>>> print("测试中文")
娴嬭瘯涓枃
>>>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
It does not support utf-8 encoding yet?
Expected
When running scripts with Chinese strings, it would come across messy code issues.
For example, the script below.
The output is:
Actual
Python Documentation
The text was updated successfully, but these errors were encountered: