satellite cannot handle tracks with a title, artist name, or album title that has "special" characters

Bug #633319 reported by Chris Wagner
6
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/.resonate/satellite/queue/resonate-site/track-23234: hGetContents: invalid argument (Invalid or incomplete multibyte or wide character)

Changed in resonate:
importance: Undecided → Medium
status: New → Confirmed
description: updated
Revision history for this message
Chris Wagner (chris-wagner) wrote :

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.

Revision history for this message
Chris Wagner (chris-wagner) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.