Newforms clean_data causes encoding issue with database
|Reported by:||Baptiste||Owned by:||adrian|
|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:1 Changed 9 years ago by Baptiste
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:6 Changed 9 years ago by adrian
- Summary changed from Newforms and accents don't like each others to Newforms clean_data causes encoding issue with database