×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    print non-ascii characters on canvas

    hi,

    I'm new to Python..
    just can't display non-ascii characters on canvas mode. I have tried with this code:

    from appuifw import *
    from graphics import *

    app.body = appBody = Canvas()
    unicodeString = u""
    for ch in range(0x0080, 0x00ff):
    unicodeString = unichr( ch ).encode('utf-8')
    appBody.text( o, unicode( unicodeString, 'utf-8' ) )
    any ideas?

    thanks in advance.

    Cheers,
    Willy

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

    Re: print non-ascii characters on canvas

    hi willy
    first of all welcome to the fantastic python Dibo.
    Plz write the code by using the quote marks and there are lot of typing mistake in ur code plz check that first.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    Re: print non-ascii characters on canvas

    found my bug..

    Cheers,
    Willy

Similar Threads

  1. KerrGeneral
    By federicopalumbo in forum Symbian
    Replies: 6
    Last Post: 2008-03-26, 16:11
  2. How to print on a white canvas?
    By bogdan.galiceanu in forum Symbian
    Replies: 4
    Last Post: 2007-11-09, 04:42
  3. How to send an image with attachment in email
    By krtrivdi in forum Symbian
    Replies: 1
    Last Post: 2007-01-09, 12:07
  4. Sending an image over email
    By jeclarim in forum Symbian
    Replies: 3
    Last Post: 2006-12-15, 20:25
  5. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46

Posting Permissions

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