You Are Here:

Community: Developer Discussion Boards

#1 Old save problem? - 2008-08-19, 16:05

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
my code is
Code:
import inbox
i=inbox.Inbox()
id=i.sms_messages()[0]
x=i.content(id)
adres=i.address(id)

f = open("c://sms.txt","w")

f.write(adres+u': ')
f.write(x)
f.close()
but i take an error :
UnicodeError: ASCII encoding error: ordinal not in range (128)
Reply With Quote

#2 Old Re: save problem? - 2008-08-19, 16:17

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
i solve problem thanks
Reply With Quote

#3 Old Re: save problem? - 2008-08-19, 16:21

Join Date: Dec 2004
Posts: 37
n6630
Offline
Registered User
Quote:
Originally Posted by cool_eagle View Post
i solve problem thanks
how did u solve it?
Reply With Quote

#4 Old Re: save problem? - 2008-08-19, 16:21

Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
Quote:
Originally Posted by cool_eagle View Post
i solve problem thanks
thats great .


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#5 Old Re: save problem? - 2008-08-19, 16:49

Join Date: Aug 2008
Posts: 148
cool_eagle
Offline
Regular Contributor
def ru(x):
return x.decode('utf-8')
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with eglSwapBuffers and heap corruption greatape Symbian Media (Graphics & Sounds) 2 2007-05-24 04:35
netcards - Problem with opening adapter kernj Symbian Tools & SDKs 5 2007-01-10 09:56
WAP service problem on Apache bigg_o Browsing and Mark-ups 3 2005-04-17 17:05
Problem: S60 SDK for CW in PC with .NET anttij Carbide.c++ IDE and plug-ins 1 2005-02-28 12:36
wireless problem sash_mca General Browsing 0 2003-06-06 12:34

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia