Google App Engine update to use unicode

I have a Google App Engine application that I wrote using regular strings. I understand that I want it to handle unicode. Are there any problems with this? I think of all the rows that I currently have in a live database. (From real users I don’t want to upset.)

+3
source share
3 answers

Alexander Kozhevnikov said: "The data warehouse stores all the rows in Unicode."

In other words, your application already uses Unicode everywhere. Thanks to the Google people for the reasonable API. No further work is required.

+2
source
+1

db.TextProperty() db.Text(), :

instance.xml = db.Text(xml_string, encoding="utf_8")

, . , Unicode XML.

This happened to me when using the Amazon.com product API.

Also, Google urlfetch had Unicode issues related to this thread. So, I ended up working with the minidom parse () function instead of parseString () in returning urllib.urlopen (), which acts like a thread like this to fix the problem:

response = urllib.urlopen(url)
xml = minidom.parse(response)
+1
source

Source: https://habr.com/ru/post/1698834/


All Articles