Japanese title returns gibberish

Issue #93 resolved
Former user created an issue

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)

  1. Michael Johnson
    • 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.

  2. Former user Account Deleted

    I fixed it by decoding it properly (UTF8). Didn't do that previously by itself.

  3. Former user 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.

  4. Log in to comment