satellite cannot handle tracks with a title, artist name, or album title that has "special" characters
Bug #633319 reported by
Chris Wagner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Resonate |
Confirmed
|
Medium
|
Unassigned |
Bug Description
E.g., things will break if trying to download a track by Sigur Rós.
The problem seems to be that the JSON file does not get saved in the UTF-8 encoding... Or perhaps the JSON string is supposed to be escaped -- e.g., the relevant portion should look like this:
"artist": "Sigur R\u00f3s"
That is how the webapp serves up the JSON, anyhow.
But the problem occurs when the satellite tries to read back in that JSON:
IO error occurred when trying to download file: /home/user/
Changed in resonate: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
description: | updated |
To post a comment you must log in.
Is the culprit our JSON library? ... As, it does not properly encode to UTF-8, or alternatively ASCII-encode/escape characters (e.g., \u00f3), when encoding into JSON.
Or perhaps we just need to do Codec.Binary. UTF8.String. encodeString on the String that we pass to hPutStrLn, when writing to the local JSON queue.