Hi
I have an application in google app engine and i want to make the
interface langauge in Arabic. I tried to do that but it display in
undefined charecters. I am using python. can any one help me.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google App En
Hi, I don't know what framework are your using.
Generally speaking, you should set "Content-Type:text/html; charset=UTF-8"
header, and make sure you output UTF-8 encoded sting.
If you are using webapp, it will look like this:
self.response.headers['Content-Type'] = 'Content-Type:text/html;
chars
Hi,thank you for your replay
I have this code in main.py
class Whatisinyourmind (db.Model):
name=db.StringProperty()
yourword=db.StringProperty()
class MainHandler(webapp.RequestHandler):
def get(self):
yourwords=db.GqlQuery('SELECT * FROM Whatisinyourmind')
values
I suggest you always use UTF-8, not windows-1256.
However, if you insist on using windows-1256, you should encode your unicode
output to str:
self.response.out.write(u'some unicode string'.*encode*('windows-1256'))
or:
self.response.out.write('some windows-1256 string') # don't decode it
Ok this code works great:
self.response.out.write(u'السلام عليكم'.encode('utf-8'))
but when i use an html page instead of a string just like this:
self.response.out.write(template.render(u'test.html'.encode('utf-8')))
it displays arabic characters rabish
in the html page i tried to write this:
and
Ok this code works great:
self.response.out.write(u'
السلام عليكم'.encode('utf-8'))
but when i use an html page instead of a string just like this:
self.response.out.write(template.render(u'test.html'.encode('utf-8')))
it displays arabic characters rabish
in the html page i tried to write this:
an