#1
  1. No Profile Picture
    James
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Location
    Beer Sheva, Israel
    Posts
    12
    Rep Power
    0

    Foreign Characters Not Supported


    I an entertaining the idea of writing a program that will contain both English and Hebrew characters.

    A quick test revealed "...characters not supported." Obvious to the most casual observer they are talking about the Hebrew characters.

    I am new to Python and am wondering if there is a way around this hurdle?

    Thanks

    James
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    Location
    London, England
    Posts
    1,585
    Rep Power
    1373
    Python has extensive support for unicode, so there should not be a problem using hebrew.

    Here is a tutorial on Python Internationalization:

    http://www.reportlab.com/i18n/python..._tutorial.html

    You can probably find others if you google hard enough.

    Dave - The Developers' Coach
  4. #3
  5. No Profile Picture
    James
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Location
    Beer Sheva, Israel
    Posts
    12
    Rep Power
    0
    Many thanks.

    I have been reading so much I plain well forgot about unicode. What a dunce I am. Thanks for the answer and for the link.

    James
  6. #4
  7. No Profile Picture
    James
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Location
    Beer Sheva, Israel
    Posts
    12
    Rep Power
    0
    I'm back again, having made absolutely zero progress.

    When I attempt to program a Hebrew word, I get an exception, "Unsupported charcters in input".

    My question then is:

    What do I do to get Python to support Hebrew characters?

    I've tried to understand unicode, but can't seem to grasp it.

    I've googled till I can't google any more.

    I need some simple explanation, if possible.

IMN logo majestic logo threadwatch logo seochat tools logo