-
Notifications
You must be signed in to change notification settings - Fork 991
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
Stream did not contain valid UTF-8 #282
Comments
same quetision.I use Chinese to display the text and I hope to be able to solve this problem as soon as possible. @Alek99 |
I have a similar problem.After hard coding Chinese in the .py, then the compiled Corresponding Chinese of .js is garbled. |
Fix will be push soon this is the pr #332 |
This fix is for some characters that were wrongly formatted because of lacking UTF-8
The bug is caused by pynecone.components.tags.tag ,when format the props, the json.dumps function use ascii encode as default. The solution is add 'ensure_ascii=False' in every case of json.dumps uses. |
…,when format the props, the json.dumps function use ascii encode as default. The solution is add 'ensure_ascii=False' in every case of json.dumps uses.
Describe the bug
When characters such as Chinese characters and Hangul are initially rendered, they are converted into invalid characters and entered in index.js. Therefore, a stream did not contain valid UTF-8 error occurs.
For example:
this code makes an error
but this works.
This obviously looks like a bug.
Screenshots
![invalid](https://user-images.githubusercontent.com/103271471/213213765-b5fc0353-9138-4b2d-aabd-945d87047282.png)
index.js when the first code was compiled
** Specifics (please complete the following information):**
The text was updated successfully, but these errors were encountered: