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={'yourwords':yourwords}
self.response.out.write(template.render('main.html',values).decode('windows-1256'))
def post(self):
whatisinyourmind=Whatisinyourmind()
nameTemp=self.request.get('name')
#nameTemp=unicode(nameTemp,'windows-1256')
whatisinyourmind.name=nameTemp
temp=self.request.get('yourword')
#temp=unicode(temp,'windows-1256')
whatisinyourmind.yourword=temp
whatisinyourmind.put()
self.redirect('/')
-----------
you can see from the above code i used decode() to display any Arabic characters and it display will EXCEPT the Arabic characters that i retrieve it from the database it display garbish
The code in main.html are
----------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>Untitled Page</title>
</head>
<body>
<h1>ماذا يدور في عقلك؟</h1>
<form action="" method="post" accept-charset="windows-1256">
{% for yourword in yourwords %}
<div>{{
yourword.name}}</>
<div>{{yourword.yourword}}</>
{% endfor %}
<br>
<label>الإسم الكريم: </label>
<input id="name" type="text" name="name"/>
<label>الكلمة:</label>
<input id="yourword" type="text" name="yourword"/>
<input id="button1" type="submit" value="Post" />
</form>
</body>
</html>
------------------
thanks again