Hi!
I'm using the WebTest package for functional tests with webtest.TestApp(...), providing the POST params as dictionary to webtest.TestApp.post(). The values in the dictionary are unicode (u" " strings), and the test script has proper encoding given via #-*- coding:UTF-8 -*- as first line.
However, the posted data (received by the Pyramid 1.2 app and stored in db) has all non-ascii chars replaced with ????. There is no error thrown. I tried forcing use_unicode=True to TestApp, but still the same, also added content_type = "application/x-www-form-urlencoded; charset=UTF-8", and tried even recoding all values with .encode("UTF-8"). To no avail.
How can I use WebTest.TestApp.post() to post unicode data? Thanks. -- .oO V Oo. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
