Search code examples
djangodjango-modelspython-unicode

Accents/special characters (e.g., ñ) in verbose_name or help_text ?


How do I use letters with accent marks or special characters like ñ in verbose_name or help_text?


Solution

  • include this in the head of your file:

    # -*- coding: utf-8 -*-
    

    and then use this:

    u'áéíóú'