Skip to content Skip to sidebar Skip to footer

Using Hebrew On Python

I have a problem printing hebrew words. i am using the counter module in order to count number of words in my given text (which is in hebrew). the counter indeed counts the words,

Solution 1:

The "weird symbols" you are getting is python's way of representing unicode strings.

You need to decode them, for example:

>>>print '\xd7\x97\xd7\x94'.decode('UTF8') חה

Post a Comment for "Using Hebrew On Python"