- edited description
Japanese title returns gibberish
Sword Art Online II (ID 21881) returns this as the Japanese title:
\u00e3\u0082\u00bd\u00e3\u0083\u00bc\u00e3\u0083\u0089\u00e3\u0082\u00a2\u00e3\u0083\u00bc\u00e3\u0083\u0088\u00e3\u0083\u00bb\u00e3\u0082\u00aa\u00e3\u0083\u00b3\u00e3\u0083\u00a9\u00e3\u0082\u00a4\u00e3\u0083\u00b3 II
When I parse the title through decodeURIComponent
(Javascript), I get ã½ã¼ãã¢ã¼ãã»ãªã³ã©ã¤ã³ II
back.
Let me know if you have the same problem or know a solution.
Edit: I suspect adding a charset=utf-8
to the content-type
response header might fix this.
Comments (7)
-
Account Deleted -
If I am right that is Unicode. This may help you: http://stackoverflow.com/questions/10576905/how-to-convert-javascript-unicode-notation-code-to-utf-8
-
- changed status to resolved
-
- changed status to open
Re-opening. Explicitly specifying the character set is probably a good idea rather than relying on autodetection. That said, it does look like you're getting the correct content. You should look at making sure your content is being passed as UTF-8 properly, as that kind of display usually indicates it is not.
-
Account Deleted I fixed it by decoding it properly (UTF8). Didn't do that previously by itself.
-
Account Deleted I had the same problem too. My fix was to remove all of the \u00 and decode the leftover text using the hex values that I got.
-
- changed status to resolved
User has found a fix.
- Log in to comment