-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
bug in printing invalid char #17271
Comments
Do not use Also, I disagree that � should be printed. It is better to raise an error early then to silently allow invalid UTF-8. |
I suggested the above since |
@randy3k That's because it's not a valid continuation byte, so
@TotalVerb I think the approach retained in Julia is that you're responsible for ensuring strings are valid on input (as you said). But then we do our best to accept broken strings, which is needed e.g. to work correctly with file paths (which are not necessarily valid Unicode). Anyway, checking strings everywhere would be too expensive (for example, |
Whether |
Great. It solves the issue. |
b"\x90"
here is not a valid char. However, since there is no conversion error, I guess it does make sense to print something like�
instead.by the way, it is julia 0.5-dev
The text was updated successfully, but these errors were encountered: