Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User Mariannu's Avatar
    Join Date
    Jul 2009
    Posts
    22
    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 Mariannu's Avatar
    Join Date
    Jul 2009
    Posts
    22
    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 gaba88's Avatar
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,692
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved