You can create a unicode string in Python like this:
Anymodel.name=u'EspaƱa'
HTH,
Alex
On Apr 11, 9:06 am, "Saik" <[EMAIL PROTECTED]> wrote:
> Hi people,
>
> Im trying to use the serialize utils in
> django.core.serializers.xml_serialize and
> django.core.serializers.json, i dont have problems u
Sorry, i will move my post to django-users.
utf-16 isnt needed to represent spanish alphabet.
On 11 abr, 19:35, "oggie rob" <[EMAIL PROTECTED]> wrote:
> This is a question for django-users, but I'll do the usual "chastise
> then help" post :)
>
> The problem is because XML uses settings.DEFAULT_
This is a question for django-users, but I'll do the usual "chastise
then help" post :)
The problem is because XML uses settings.DEFAULT_CHARSET of 'utf-8',
which is the standard XML character set. You will need to change this
to 'utf-16', I think.
So, in your settings file, add the line:
DEFAULT
Hi people,
Im trying to use the serialize utils in
django.core.serializers.xml_serialize and
django.core.serializers.json, i dont have problems using json but i
have issues trying something like that:
xml = serializers.serialize("xml", Anymodel.objects.all())
If the model data contains unicode