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
Inconsistent UTF-8 Behavior in Dartium #14948
Comments
Added Area-Dartium, Triaged labels. |
More context: http://japhr.blogspot.com/2013/11/unicode-dart-code.html |
This comment was originally written by googlegroups...@kaioa.com "⌘" is actually the result of reading an UTF-8 "⌘" as ISO-8859-1. How did the response headers of that dart file look like? (You can easily get those with Personally, I think it would be good idea if it would default to UTF-8. Python does this too [1], for example. |
This comment was originally written by chri...@gmail.com Actually, I opened the HTML with a file:// URL. I see the same behavior if I serve it from pub serve, in which case there are no charset headers: $ curl -I http://localhost:8080/string_test.html Even if I serve it up from a Python simple HTTP server, there are no charset headers and I see the same behavior. BUT... if I explicitly set the charset to UTF-8 in an HTML <meta> (see attached), then the output is the expected glyph (and if I set it to UTF-16, it also behaves as desired). And yes, if I change the <meta> tag to ISO-8859-1, then I see the same incorrect behavior. Attachment: |
Set owner to @vsmenon. |
Added this to the M9 milestone. |
Removed this from the 1.6 milestone. |
Removed Oldschool-Milestone-1.6 label. |
This issue was originally filed by chris.ee...@gmail.com
What steps will reproduce the problem?
I expect the output to be identical, but Dartium seems to be treating the UTF-8 code units as UTF-16 code points.
Seen with: Dart VM version: 0.8.10.6_r30036 (Thu Nov 7 01:23:45 2013) on "linux_x64"
See the attached test file, which is UTF-8 encoded.
Attachment:
string_test.dart (204 Bytes)
The text was updated successfully, but these errors were encountered: