On 2/24/07, Paul Pogonyshev <[EMAIL PROTECTED]> wrote:
Tarek Ziadé wrote: > I have created a setup.py file for distirbution and I bumped into > a small bug when i tried to set my name in the contact field (Tarek Ziadé) > > Using string (utf8 file): > > setup( > maintainer="Tarek Ziadé" > ) How about maintainer = u"Tarek Ziadé"?
see second part of my message: Using unicode: setup( maintainer=u"Tarek Ziadé" ) leads to: File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 1094, in write_pkg_file file.write('Author: %s\n' % self.get_contact() ) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 18: ordinal not in range(128) Tarek Paul
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig