It does seem like the name "François Pétillant" is being stored
successfully on the server and is queryable.  However, when I use the
Datastore Viewer I get the error below.

Any help in guiding me along the do's/don'ts of character encodings
would be most appreciated.
Thanks!
Tom

Traceback (most recent call last):
  File "/cygdrive/c/Program Files/Google/google_appengine/google/
appengine/ext/webapp/__init__.py", line 499, in __call__
    handler.get(*groups)
  File "/cygdrive/c/Program Files/Google/google_appengine/google/
appengine/ext/admin/__init__.py", line 520, in get
    value = DataType.get(raw_value).format(raw_value)
  File "/cygdrive/c/Program Files/Google/google_appengine/google/
appengine/ext/admin/__init__.py", line 852, in format
    writer.writerow(value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in
position 4: ordinal not in range(128)


On Jan 13, 11:25 am, Tom <[email protected]> wrote:
> I need some suggestions/guidance on how to handle strings that contain
> characters like "François Pétillant".
>
> I have several problems.
>
> First, I do want to store these names in their original encoding
> (which I think I can do in a db.Text object).
>
> I also want to be able to search their names with or without the
> special characters.  (eg. "François" and "Francois" would both in the
> SearchableModel's tags)  Any utility to convert sensibly?
>
> Finally, I want to be able to send back the name in utf-8 in a format
> that can be converted back to the original on the user side.  (In this
> specific case the wine name is being sent back to my android phone
> app.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to