Skip to content
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

special character in res compile #643

Closed
virgiledelplace opened this issue Jan 1, 2021 · 2 comments
Closed

special character in res compile #643

virgiledelplace opened this issue Jan 1, 2021 · 2 comments

Comments

@virgiledelplace
Copy link

Hello,

I think its not bug, i think its recommendation i need, i work on React project with rescript, but when i wrote a special character in my RES file like "é" i got "\xc3\xa9" in my bs.js file. Sur i use "string" |> React.string i fond understand, in my web render i got this : "é". My editor is VSC in UTF-8 and in my html i have good meta-charset.

In advance, thanks you!

@davesnx
Copy link
Member

davesnx commented Nov 23, 2022

ReScript recently changed the behaviour of their UTF on strings, before was needed to use "`".

Check the playground: https://rescript-lang.org/try?code=DYUwLgBAhhC8EAMCHCBQpICM4QEQEvdUg

@davesnx
Copy link
Member

davesnx commented Nov 23, 2022

Nothing to do in reason-react, closing.

@davesnx davesnx closed this as completed Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants