| Reply | « Previous Thread | Next Thread » |
|
Hi,
name=u'papà' #Character accented à f = open(name,"w") and the application ends with error: UnicodeError: ASCII encoding error: ordinal not in range(128) Do you have a solution? |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
|
Quote:
what you are opening??? if you are opening a file you have to open it with a proper extension and mode that may solve ur problem. Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
name=u'e:\\system\\apps\\application_name\\papà.txt'
the solution is: sys.setdefaultencoding('iso-8859-1') f=open(name,'w') ... Tanks for reply. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |