#47132: port submission: qarte --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: qarte | --------------------------+-------------------------------- Comment (by rjvbertin@…): The main functions work, but I'd need some assistance with unicode issues. For instance, when clicking on a video that has an e-acute (é) at position 95, I see the following error: {{{ Traceback (most recent call last): File "/opt/local/share/qarte/ui_main.py", line 905, in selection_changed self.main.apl.show_pitch() File "/opt/local/share/qarte/artePlus.py", line 241, in show_pitch self.edit_summary(idx) File "/opt/local/share/qarte/artePlus.py", line 661, in edit_summary summary = self.videos[idx].summary.decode('utf-8', 'replace') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 95: ordinal not in range(128) }}} In other words, I'm getting the iso-8859-1 encoding for 'é' (0xe9 = 233) . On Linux this apparently doesn't pose any problems. Does Python use a different default encoding on OS X (or under MacPorts)? The input string appears to be the same... -- Ticket URL: <https://trac.macports.org/ticket/47132#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X