Hi
I am trying to create an image with text hebrew in it using Image and ImageDraw moduls but I keep getting erros. this is the code
import Image
import ImageDraw
a = u'\u05d0'#the unicode of the letter I want to display
im=Image.new('RGB',(200,200),(100,100,100))
d=ImageDraw.Draw(im)
d.text((0,0),a)
this is the error I get:
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
d.text((0,0),a)
File "C:\Python26\lib\site-packages\PIL\ImageDraw.py", line 267, in text
mask = font.getmask(text, self.fontmode)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u05d0' in position 0: ordinal not in range(128)
any help would be appriciated
thanks