Newforms clean_data causes encoding issue with database
|Reported by:||Baptiste||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
"form" is a newform and "Article" is a model.
new_article = Article(text=form.clean_data['article'])
If the field article contains accents, they are replaced by "?" in the database (same thing if they are displayed with a view/template).
Encoding of the page is utf8.
That would be interesting to test if it is a newforms issue by trying to make an Article with accents in the admin of thenewforms-admin branche. I couldn't make it work (admin said I didn't have rights) to test by myself.
Change History (7)
comment:6 Changed 10 years ago by
|Summary:||Newforms and accents don't like each others → Newforms clean_data causes encoding issue with database|