utf 8 - I can not see utf-8 strings on django powered by tornado server -
i have django server running on tornado server.
when use special caracters ó or ñ page part of django template not rendered (character set has been especified 'utf-8' in settings.py , tornado_script.py # -- coding: utf-8 --).
considering part of template not rendered (a form) , server works using django built-in runserver, supposed problem comming tornado server, can not debug configuration.
if of know how debug find missing configuration, please let me know.
i've been searching lot last 3 hours no results.
best regards
probably browser guessing character set wrong. browsers allow set encoding, suggest trying setting utf-8. if indeed problem, can set encoding meta tag browsers pick right encoding. add head
:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
you should make sure special characters in utf-8. editors allows enforce this. can set special encoding python files, choke if else appears. add following beginning of pytho source weird characters:
# encoding: utf-8
Comments
Post a Comment