Hi Juan, try using the u"xxx" format, e.g.

ctmp = Category.gql("WHERE title = :1", u"Fórmula 1").get()

Also, maybe make sure your HTML files use utf-8 encoding...mine have
    <meta http-equiv="content-type" content="application/xhtml+xml;
charset=utf-8"/>
in the header and
<?xml version="1.0" encoding="utf-8"?>
at the very top (ahead of the <html> tag)

buen suerte, kyle

On Aug 28, 6:01 pm, Merlos <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a problem to get data that uses non ascii characters such as
> º,ª,á,é,í,ó,ú...
>
> I will explain how do I store and try to retrieve the data:
>
> On top of the python source file I have:
> # -*- coding: utf-8 -*-
>
> The form input:
> <input type="text" name="title" value="" />
>
> Processing the form:
> def post...
>     ...
>     category.title = self.request.get("title")
>     ...
>     category.put()
>
> I fill the form with a category with title "Fórmula 1"
> I fill the form with a category with title "Baloncesto" (basket)
>
> Trying to find the category by title
>
> ctmp = Category.gql("WHERE title = :1","Fórmula 1").get()
> if ctmp is None:
>     self.response.out.write("Enjuto says: I cannot find tilded
> words :_(")
> else:
>      self.response.out.write("Pataliebre! I found it")
>
> Searching "Fórmula 1" is always None, but searching "Baloncesto" works
> fine.
>
> Somebody knows how do I have to store and retrieve data that has no
> ascii chars?
>
> Thank you in advance. Juan.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
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