-
Notifications
You must be signed in to change notification settings - Fork 311
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
UTF-8 encoder/decoder title is misleading #53
Comments
Could you post a link to an example Stack Overflow post where this confusion occurs? Would it help to link to https://encoding.spec.whatwg.org/#utf-8? |
Yes, sorry, I had intended to elaborate earlier. "Disclaimer: I think otherwise, new players will get the notion that hexadecimal escape sequences are the definition of UTF-8. https://stackoverflow.com/search?q=https%3A%2F%2Fmothereff.in%2Futf-8 |
This is false. See https://mathiasbynens.be/notes/javascript-encoding.
This is also incorrect. The page takes Unicode strings as input and converts them to their UTF-8-encoded byte sequence, in the format
The tool does no such thing. Are you thinking of https://mothereff.in/js-escapes? |
My mistake, on the internal representation. On the second point, fair and accurate, as they are Unicode strings. 👍 On the third, I was just reporting the observed behavior of the script. So, not sure about that? |
@zvodd What's the URL you're seeing that on, and in which browser are you seeing this? https://mothereff.in/utf-8#ABC produces the expected output of |
The user input is from the bottom so user input is Let me try to be clear, I am not hear to try to tell you I know how you encoder works better than you. I am just saying that I think the description of UT8 encoding on the page should let users know that the "\x00" format of output is a hexadecimal format escape string and not exclusively related to UTF-8. My initial attempt at the explanation was an example with a number of inaccuracies, for which I apologize. |
This is problematic.
There are people posting on stack overflow and being generally confused by what UTF-8 is.
In part, thanks to the complete lack of clarification on the page https://mothereff.in/utf-8
The text was updated successfully, but these errors were encountered: