2👍
As far as I know, MySQL’s equivalent to an NVARCHAR
is a VARCHAR
with a utf8 character set. Here’s the MySQL reference page for the subject (assuming you’re using 4.1 or newer).
So if your columns are already defaulting to utf8 then you’re fine.
If you’re using a different character set by default (not sure if Django even supports this) and only want some utf8 columns you could subclass models.CharField
and override db_type
. Here are the Django docs for custom fields.
Source:stackexchange.com