Re: Django 1.0 no longer prints higher ASCII?

2008-11-30 Thread Malcolm Tredinnick


On Sun, 2008-11-30 at 07:56 -0800, Log0 wrote:
> Hi all,
> 
> This string :
> 
> data = ''.join( [ chr(i) for i in xrange(256) ] )
> 
> In Django 0.96, this string prints well.
> In Django 1.0, this string simply disappears before going to Apache,
> and the data is never transmitted to the client or even apache.

You're going to need to supply a bit more information than that. You
don't explain how you are trying to send that information to the client,
for example. Is it part of a template? Or raw data that you push into an
HttpResponse object?

Realise that there were some things with bytestrings like this that
worked by accident in Django 0.96. When we added proper unicode support
just after 0.96 was released, this also meant that all bytestrings are
treated as UTF-8. So arbitrary bytestrings like the above won't make a
lot of sense most of the time (it isn't valid UTF-8). However, it
depends on the context you are using the data in, so if you can supply a
few more details, we might be able to help.

Regards,
Malcolm



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django 1.0 no longer prints higher ASCII?

2008-11-30 Thread Brian Neal

On Nov 30, 9:56 am, Log0 <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> This string :
>
> data = ''.join( [ chr(i) for i in xrange(256) ] )
>
> In Django 0.96, this string prints well.
> In Django 1.0, this string simply disappears before going to Apache,
> and the data is never transmitted to the client or even apache.
>
> Why?
> Any fix?
>
> Thanks a lot.

Technically speaking, ASCII is only a 7-bit code.

However, what is your DOCTYPE and charset on the page you are serving?
How are you displaying 'data'?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django 1.0 no longer prints higher ASCII?

2008-11-30 Thread Jeff FW

What do you mean by "disappears"?  How are you trying to output it?
There's nothing special about the string that line generates, and I
doubt anything would have changed between versions of Django that
would stop that string from doing something it used to do.

-Jeff

On Nov 30, 10:56 am, Log0 <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> This string :
>
> data = ''.join( [ chr(i) for i in xrange(256) ] )
>
> In Django 0.96, this string prints well.
> In Django 1.0, this string simply disappears before going to Apache,
> and the data is never transmitted to the client or even apache.
>
> Why?
> Any fix?
>
> Thanks a lot.
>
> ---
>
> Best Regards,
> Log0
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django 1.0 no longer prints higher ASCII?

2008-11-30 Thread Log0

Hi all,

This string :

data = ''.join( [ chr(i) for i in xrange(256) ] )

In Django 0.96, this string prints well.
In Django 1.0, this string simply disappears before going to Apache,
and the data is never transmitted to the client or even apache.

Why?
Any fix?

Thanks a lot.

---

Best Regards,
Log0


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django 1.0 no longer prints higher ASCII?

2008-11-30 Thread Log0

Hi all,

This string :

data = ''.join( [ chr(i) for i in xrange(256) ] )

In Django 0.96, this string prints well.
In Django 1.0, this string simply disappears before going to Apache,
and the data is never transmitted to the client or even apache.

Why?
Any fix?

Thanks a lot.

---

Best Regards,
Log0


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---