Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-19 Thread Gaute Amundsen
On Friday 16 June 2006 20:28, Dieter Maurer wrote: > Gaute Amundsen wrote at 2006-6-16 13:05 +0200: > >All my pages normally have a content-type of ISO-8859-1 > >I have not spent much thought on this, it has just worked nicely like > > that. > > > >Today I had a page that called a python script, th

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Dieter Maurer
Gaute Amundsen wrote at 2006-6-16 13:05 +0200: >All my pages normally have a content-type of ISO-8859-1 >I have not spent much thought on this, it has just worked nicely like that. > >Today I had a page that called a python script, that even when I made it >return an empty string, changed the cont

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Gaute Amundsen
On Friday 16 June 2006 13:39, Tino Wildenhain wrote: > Gaute Amundsen schrieb: > > > > item.manage_changeProperties({'title':'Hustype'}) gives utf-8. > > item.manage_changeProperties(title='Hustype') leaves > > ISO-8859-1 intact. > > > > WTF is that? > > My guess would be the dict

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Philip Kilner
Hi Andreas, Andreas Jung wrote: > 'Hustype' is pure ASCII...this will *always* have the same encoding in > almost all encodings (except in Klingon). > [klingon] ghaH ghItlhta' Daq [ASCII] ;-) -- Regards, PhilK "Human language continually changes, innit." - Stephen Juan ___

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Andreas Jung
--On 16. Juni 2006 13:42:40 +0200 Andreas Jung <[EMAIL PROTECTED]> wrote: --On 16. Juni 2006 13:39:03 +0200 Tino Wildenhain <[EMAIL PROTECTED]> wrote: item.manage_changeProperties({'title':'Hustype'}) gives utf-8. item.manage_changeProperties(title='Hustype') leaves ISO-88

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Andreas Jung
--On 16. Juni 2006 13:39:03 +0200 Tino Wildenhain <[EMAIL PROTECTED]> wrote: item.manage_changeProperties({'title':'Hustype'}) gives utf-8. item.manage_changeProperties(title='Hustype') leaves ISO-8859-1 intact. WTF is that? My guess would be the dict-argument is used in

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Tino Wildenhain
Gaute Amundsen schrieb: This gave me such a headache today, that I thought I ought to mention it. All my pages normally have a content-type of ISO-8859-1 I have not spent much thought on this, it has just worked nicely like that. Today I had a page that called a python script, that even when I

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Andreas Jung
--On 16. Juni 2006 13:31:35 +0200 Gaute Amundsen <[EMAIL PROTECTED]> wrote: On Friday 16 June 2006 13:14, Andreas Jung wrote: --On 16. Juni 2006 13:05:09 +0200 Gaute Amundsen <[EMAIL PROTECTED]> wrote: > item.manage_changeProperties({'title':'Hustype'}) gives utf-8. This makes less sense. Y

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Gaute Amundsen
On Friday 16 June 2006 13:14, Andreas Jung wrote: > --On 16. Juni 2006 13:05:09 +0200 Gaute Amundsen <[EMAIL PROTECTED]> wrote: > > item.manage_changeProperties({'title':'Hustype'}) gives utf-8. > > This makes less sense. You're passing an ASCII string which has the same > representation in UTF-8

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-16 Thread Andreas Jung
--On 16. Juni 2006 13:05:09 +0200 Gaute Amundsen <[EMAIL PROTECTED]> wrote: item.manage_changeProperties({'title':'Hustype'}) gives utf-8. This makes less sense. You're passing an ASCII string which has the same representation in UTF-8..so why should this be a utf-8 string? item.