[Django]-Django replaces non-ascii characters with \ufffd

0👍

Solved: I forgot to add encoding to HTML pages I am generating. Adding of <meta http-equiv="content-type" content="text/html; charset=utf-8"> solved the problem.

0👍

Use the magic! smart_unicode from Django should help you a lot. Mix between smart_unicode and smart_str regarding if you want to encode or decode a string (for any later project ;)).

Leave a comment