Hi,
I am trying to write a bulkuploader for my model, but it is failing
due to one of the string having a unicode character
I created a uni function and used it as a converter, but still
failing.
What do I need to do to upload unicode characters in Bulkloader?

[ERROR   ] [Thread-1] BulkLoaderThread: caught exception (<type
'exceptions.Unic
odeDecodeError'>, UnicodeDecodeError('ascii', 'The Collection by Jean
Schnaak\xc2\xae', 43, 44, 'ordinal not in range(128)'),
<traceback object at0x05A62C88>)

def uni(s)
     return unicode(s)

class Product(search.SearchableModel):
        title = db.StringProperty(required=True)
        desc = db.StringProperty(required=True)

class ProductLoader(bulkloader.Loader):
    def __init__(self):
        bulkloader.Loader.__init__(self, 'Product',
                                   [('title', str),
                                    ('desc', uni)
                                   ])
Thanks in advance

--~--~---------~--~----~------------~-------~--~----~
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