Re: Strange crash with ugettext_lazy when accent letter

2013-12-16 Thread gilberto dos santos alves
please see your settings.py [1],
default_charset is utf-8?;
use_l10n is set true?
what is default content-type?
we have this issue when use pt-br chars like õ and ç but with correct setup
this has worked.



[1] https://docs.djangoproject.com/en/dev/ref/settings/


2013/12/16 Bastien Sevajol 

> Hi,
>
> I want ask to this mailing list before open bug issue on code.django.
> When use ugettext_lazy with accent like "â" some strange behaviour
> happens. Exemple:
>
> # -*- coding: utf-8 -*-
>> from django.db import models
>>
> from django.utils.translation import ugettext_lazy as _
>>
> class MyModel(models.Model):
>>
>>   name = models.CharField(_(u"name"), max_length=80)
>>   type = models.CharField(max_length=1,
>>   choices=(('a', '*â*'), ('b', 'b')),
>>   default='b')
>>
>
> With this code the form will not be render. No error or warning, form is
> just not rendered. If 'â' is replaced by 'a', form is rendered correctly.
> ugettext_lazy Should not report error or somethig ?
>
> Thank's.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/1db21371-e1b6-4426-83f7-b6ba7d2cb025%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
gilberto dos santos alves
+55.11.98646-5049
sao paulo - sp - brasil

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAP9G-NJ_6U1vMnMKX7FMvZbv%2B%3DE_MOx1CrTgm3wRsBzP%2BY-p9g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Strange crash with ugettext_lazy when accent letter

2013-12-16 Thread Ramiro Morales
On Mon, Dec 16, 2013 at 11:19 AM, Bastien Sevajol
 wrote:
> Hi,
>
> I want ask to this mailing list before open bug issue on code.django.
> When use ugettext_lazy with accent like "â" some strange behaviour happens.
> Exemple:
>
>> # -*- coding: utf-8 -*-
>> from django.db import models
>>
>> from django.utils.translation import ugettext_lazy as _
>>
>> class MyModel(models.Model):
>>
>>   name = models.CharField(_(u"name"), max_length=80)
>>   type = models.CharField(max_length=1,
>>   choices=(('a', 'â'), ('b', 'b')),

You aren't using ugettext_lazy with accent like "â" al all here.

-- 
Ramiro Morales
@ramiromorales

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAO7PdF_3eVehj64H6_9FmFMkkTS5d%2BecEhyk-45dCG2CkB-uLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Strange crash with ugettext_lazy when accent letter

2013-12-16 Thread Bastien Sevajol
Hi,

I want ask to this mailing list before open bug issue on code.django.
When use ugettext_lazy with accent like "â" some strange behaviour happens. 
Exemple:

# -*- coding: utf-8 -*-
> from django.db import models
>
from django.utils.translation import ugettext_lazy as _ 
>
class MyModel(models.Model):
>   
>   name = models.CharField(_(u"name"), max_length=80)
>   type = models.CharField(max_length=1,
>   choices=(('a', '*â*'), ('b', 'b')),
>   default='b')
>

With this code the form will not be render. No error or warning, form is 
just not rendered. If 'â' is replaced by 'a', form is rendered correctly.
ugettext_lazy Should not report error or somethig ?

Thank's.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/1db21371-e1b6-4426-83f7-b6ba7d2cb025%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.