Closed crocket closed 5 years ago
80a0583 should at least prevent the exception, but will result in no current song information. I'm unsure how a proper fix would look like; MPD says the protocol is UTF-8, but seems to serve up non-UTF-8 at times?
2dd665d changes the decoding error handler to "replace", which should give you the familiar � for non-UTF-8 data. I suspect a proper fix (to get it to show the actual text) needs to be on mpd's side; it's probably too late when it reaches i3pystatus, we don't know the encoding of those fields.
There is no way to specify character encoding for icy-title in an m3u playlist in mpd.
I installed the latest git commit, and the issue seems to have been fixed. I see broken characters instead of error. I let you decide whether the issue is fixed.
Closing it because it is considered fixed.
For many asian radio streams, icy-title's character encoding is not UTF-8.
The error is
It's better to display broken characters than to emit errors.