You Are Here:

Community: Developer Discussion Boards

#1 Old system error (-50) when trying to print text from textfile - 2009-07-05, 06:37

Join Date: Jul 2009
Posts: 22
Mariannu
Offline
Registered User
I converted an .xml file into a .txt file using office 2007

When I try to print part of the text file, I get the following error after a "system error (-50)" note:

Quote:
UnicodeError: ASCII decoding error: ordinal not in range(128)
This is the code I used:

Code:
f = file("D:\\test.txt","r")
x = f.readlines()
f.close()
y = x[2].split("\t")
print y[1].decode("utf-8")
I checked the file... there are no strange characters...
I also tried most of the options provided by Microsoft Office Excel 2007, including "Text (tab delimited)", "Unicode Text" and "Text (MS DOS)"!
Reply With Quote

#2 Old Re: system error (-50) when trying to print text from textfile - 2009-07-05, 07:42

Join Date: Jul 2009
Posts: 22
Mariannu
Offline
Registered User
It looks I have a problem with the emulator.. nothing related to the excel file!

I tried:
Quote:
print u'3'
and i got the same error!!

Any ideas?!
Reply With Quote

#3 Old Re: system error (-50) when trying to print text from textfile - 2009-07-05, 07:50

Join Date: Feb 2008
Posts: 2,542
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 Mariannu View Post
It looks I have a problem with the emulator.. nothing related to the excel file!

I tried: and i got the same error!!

Any ideas?!
hello mariannu

thats strange

please check that you dont have any python script named on any module name.


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

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
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
Rotate dynamic text box narender_raul Flash Lite on Nokia Devices 2 2008-12-05 19:21
Print text independent of printer drivers blackspear Bluetooth Technology 1 2007-09-20 08:58
System Help with nokia pc connectivity SDK gotka PC Suite API and PC Connectivity SDK 4 2004-07-06 10:56
Rich Text box cut,copy,paste system error skdas General Symbian C++ 0 2003-05-28 13:16
Can I print a text directly from Java in the Nokia 9210? Nokia_Archive PersonalJava 1 2002-05-25 04:13

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