horiator / beamproject

Automatically exported from code.google.com/p/beamproject
0 stars 0 forks source link

Error when field which is displayed ends with spanish letter #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select a song with a field that ends with a spanish character (singer 
Alberto Podestá)
2. Play it

What is the expected output? What do you see instead?

Beam cannot calculate the length of the text-field. Confirmed on Audacious and 
Banshee using Di Sarli/Podestá

Please use labels and text to provide additional information.

 TextWidth, TextHeight = dc.GetTextExtent(text)
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_gdi.py", line 4127, in GetTextExtent
    return _gdi_.DC_GetTextExtent(*args, **kwargs)
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 20: 
unexpected end of data

Original issue reported on code.google.com by mikael.h...@gmail.com on 30 Nov 2014 at 2:33

GoogleCodeExporter commented 9 years ago
Solved!

Original comment by mikael.h...@gmail.com on 1 Dec 2014 at 8:12