-
Notifications
You must be signed in to change notification settings - Fork 80
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
EscapePolicy::Basics escapes unicode #64
Comments
Because So if you want them to be printed as original, use |
If |
I checked all commits related to this line of code, and it seems that it is bug introduced 4 years ago. 4 years ago @mitsuhiko added |
@johansigfrids Please verify if it this commit works in your case. |
Yes! Now |
It is expected, right? If everything is ok, I am going to release a new version. |
Yes, it now works the way I would expect it to. |
Released in v0.15.2. |
It seems both
EscapePolicy::Basics
andEscapePolicy::BasicsUnicode
escape non-ascii unicode characters.EscapePolicy::Nothing
does not escape unicode, but doesn't escape anything else either.For example, have a
in.ini
files with some unicode in it:some-key=åäö
And a
main.rs
file which reads and writes the ini:Both
basics.ini
andbasics_unicode.ini
end up the same:some-key=\x00e5\x00e4\x00f6
I would have expected
basics.ini
to leave the unicode stuff as is.The text was updated successfully, but these errors were encountered: