Tuesday, October 11, 2011

Re: django and unicode

On Wed, Oct 12, 2011 at 15:13, Elim Qiu <elim.qiu@gmail.com> wrote:
> I just start try django 1.3.1, still in the step I of the tutorial,
> but noticed that the tables created is in latin1 encoding while I
> prefer utf8 for the entire app.

This https://docs.djangoproject.com/en/dev/ref/unicode/

would suggest that making the table UTF8 should suffice....


> I don't want to set the database default char encoding to be utf8
> since I have other non-django apps.

That will break if the DB is UTF8?

> What is the proper way of setting utf8 encoding for django apps?
>
> Thanks

--
The politician's syllogism, also known as the politician's logic or
the politician's fallacy, is a logical fallacy of the form:
- We must do something
- This is something
- Therefore, we must do this.
(via http://bestofwikipedia.tumblr.com/ )

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment