d9pouces / StarterPyth

Create good skeletons of Python applications
GNU General Public License v2.0
20 stars 4 forks source link

Decoding issue #4

Closed frague59 closed 11 years ago

frague59 commented 11 years ago

Hi,

I'm french user (as you), and has an accent in my name, and use it...

When I enter my name as "Author name", I have an error :

Traceback (most recent call last): File "/usr/local/bin/starterpyth-bin", line 9, in load_entry_point('starterpyth==0.5.2', 'console_scripts', 'starterpyth-bin')() File "/usr/local/lib/python2.7/dist-packages/starterpyth-0.5.2-py2.7.egg/starterpyth/core.py", line 174, in main cls.update_global_context(context, filters) File "/usr/local/lib/python2.7/dist-packages/starterpyth-0.5.2-py2.7.egg/starterpyth/plugins/base/init.py", line 35, in update_globalcontext regexp=r'[\w-.]+@[\w_-.]').input() File "/usr/local/lib/python2.7/dist-packages/starterpyth-0.5.2-py2.7.egg/starterpyth/fields.py", line 42, in input value = raw_input(prompt).decode('utf-8') UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 27: ordinal not in range(128)

Continue to test...

d9pouces commented 11 years ago

Thx for this report. This bug should be fixed in this new 0.5.3 :-)