×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    22

    system error (-50) when trying to print text from textfile

    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:

    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)"!

  2. #2
    Registered User
    Join Date
    Jul 2009
    Posts
    22

    Re: system error (-50) when trying to print text from textfile

    It looks I have a problem with the emulator.. nothing related to the excel file!

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

    Any ideas?!

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: system error (-50) when trying to print text from textfile

    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.

Similar Threads

  1. Rotate dynamic text box
    By narender_raul in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-12-05, 18:21
  2. Print text independent of printer drivers
    By blackspear in forum Bluetooth Technology
    Replies: 1
    Last Post: 2007-09-20, 07:58
  3. System Help with nokia pc connectivity SDK
    By gotka in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2004-07-06, 09:56
  4. Rich Text box cut,copy,paste system error
    By skdas in forum Symbian
    Replies: 0
    Last Post: 2003-05-28, 12:16
  5. Can I print a text directly from Java in the Nokia 9210?
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-25, 03:13

Posting Permissions

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