views:

36

answers:

2

Hi guys, how ill use accent's letter's or special characters like ñ in verbose_name or help_text?

Thanks

A: 

i did it:

import os, sys
#encoding= utf-8

Thanks

Asinox
+1  A: 

include this in the head of your file:

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

and then use this:

u'áéíóú'
diegueus9
what's the different between # -*- coding: utf-8 -*- and #encoding= utf-8 ?Thanks
Asinox
in pep 263 http://www.python.org/dev/peps/pep-0263/ say is the same thing but editors recognize and can automatic put it in the file the first: # -*- coding: utf-8 -*- not the second
diegueus9