unicode - Guidelines for changing the default encoding of a Django site -
django comes unicode support out of box , supports utf-8 default. have developed, debugged , tested site bunch of django apps in utf-8. steps required painless migration different encoding, latin-1 ? wish need setting default_charset = 'latin-1'
, changing encoding of database somehow doubt simple.
for sake of discussion can ignore migration of stored utf-8 data in database; i'm interested in required checks , changes in django code database , web server configuration.
you shouldn't need make significant changes django codebase. though working characterset utf-8, data stored in database using database's chosen encoding.
do have really reason moving utf-8 latin-1?
if you're concerned character encoding of output, want deal using referenced setting, rather @ database level may lose data.
there's more info here:
Comments
Post a Comment