Re: [Zope] UTF-8 problem with zope2.10 and postgresql [Solved]
- Jonathan (dev101) dev...@magma.ca a écrit : - Original Message - From: Andreas Jung li...@zopyx.com To: Claire Boussard claibo...@free.fr Cc: zope zope@zope.org Sent: Friday, November 06, 2009 12:47 PM Subject: Re: [Zope] UTF-8 problem with zope2.10 and postgresql Am 06.11.09 17:40, schrieb Claire Boussard: In the HTML page meta http-equiv=Content-Type content=text/html; charset=UTF-8 / The ZPublisher does not care about that. You may set the content-type explictly as HTTP header and not through http-equiv by calling RESPONSE.setHeader(key, value) (no idea how to do that using the ancient technology DTML). dtml-call RESPONSE.setHeader('Content-Type','text/html; charset=UTF-8') I tried this but it changed nothing, I think specifiying default-zpublisher-encoding utf-8 in zope.conf does the same. Eventually I have replaced dtml-var firstname with dtml-var expr=firstname.decode('utf8') I do'nt really understand why, and it's not very convenient as I must fix all the pages, but it works! Many thanks to all who responded. Claire Boussard ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UTF-8 problem with zope2.10 and postgresql [Solved]
Am 09.11.09 15:59, schrieb Claire Boussard: - Jonathan (dev101) dev...@magma.ca a écrit : - Original Message - From: Andreas Jung li...@zopyx.com To: Claire Boussard claibo...@free.fr Cc: zope zope@zope.org Sent: Friday, November 06, 2009 12:47 PM Subject: Re: [Zope] UTF-8 problem with zope2.10 and postgresql Am 06.11.09 17:40, schrieb Claire Boussard: In the HTML page meta http-equiv=Content-Type content=text/html; charset=UTF-8 / The ZPublisher does not care about that. You may set the content-type explictly as HTTP header and not through http-equiv by calling RESPONSE.setHeader(key, value) (no idea how to do that using the ancient technology DTML). dtml-call RESPONSE.setHeader('Content-Type','text/html; charset=UTF-8') I tried this but it changed nothing, I doubt that. -aj attachment: lists.vcf___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UTF-8 problem with zope2.10 and postgresql
2009/11/8 Andrew Milton a...@theinternet.com.au: PageTemplateFile stops Zope from starting if the file they refer to does not exist, rather than the 'at-access-time' error they used to generate. When you have place holder code and templates in abstract base-classes, this sucks the big one let me tell you. I don't know why or what changed there, but have you considered that this could be a bug? It sounds as if you have a legitimate usecase there, at least something you could argue convincingly about. -- Martijn Pieters ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UTF-8 problem with zope2.10 and postgresql
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Milton wrote: +---[ Martijn Pieters ]-- | | 2009/11/6 Garry Saddington ga...@schoolteachers.co.uk: | I've always been amused by this 'outdated' technology thing, with | respect to dtml. Someone had better tell Linus to change his programming | language for the kernel, it's getting a bit old by now. How about c#, | that should do it. | | It's a question of resources and maintainability. Few people have the | time or the inclination to keep DTML going. Ergo, it'll die and we let | you know so you can migrate away from it. More likely, someone spiteful will deliberately break it or simply remove it between releases without notice, that seems to be the Zope Way Really? When have we deliberately broken stuff between releases without notice? We've been pretty damned careful about BBB issues, AFAIK. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkr18KQACgkQ+gerLs4ltQ4qNACfeBGq7mvT8wdSdNWM4fKHuaBJ yjQAoKxis7aBSuJUqckLQve7WwZPpWOM =6NoB -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UTF-8 problem with zope2.10 and postgresql
Am 07.11.09 23:11, schrieb Tres Seaver: Andrew Milton wrote: +---[ Martijn Pieters ]-- | | 2009/11/6 Garry Saddington ga...@schoolteachers.co.uk: | I've always been amused by this 'outdated' technology thing, with | respect to dtml. Someone had better tell Linus to change his programming | language for the kernel, it's getting a bit old by now. How about c#, | that should do it. | | It's a question of resources and maintainability. Few people have the | time or the inclination to keep DTML going. Ergo, it'll die and we let | you know so you can migrate away from it. More likely, someone spiteful will deliberately break it or simply remove it between releases without notice, that seems to be the Zope Way Really? When have we deliberately broken stuff between releases without notice? We've been pretty damned careful about BBB issues, AFAIK. Absolutely right. Andreas attachment: lists.vcf___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UTF-8 problem with zope2.10 and postgresql
+---[ Tres Seaver ]-- | -BEGIN PGP SIGNED MESSAGE- | Hash: SHA1 | | Andrew Milton wrote: | +---[ Martijn Pieters ]-- | | | | 2009/11/6 Garry Saddington ga...@schoolteachers.co.uk: | | I've always been amused by this 'outdated' technology thing, with | | respect to dtml. Someone had better tell Linus to change his programming | | language for the kernel, it's getting a bit old by now. How about c#, | | that should do it. | | | | It's a question of resources and maintainability. Few people have the | | time or the inclination to keep DTML going. Ergo, it'll die and we let | | you know so you can migrate away from it. | | More likely, someone spiteful will deliberately break it or simply | remove it between releases without notice, that seems to be the Zope | Way | | Really? When have we deliberately broken stuff between releases without | notice? We've been pretty damned careful about BBB issues, AFAIK. I don't really want to fill up an email with a litany of stuff, I'm sure many people have their own pet-peeves about stuff being axed out, but, I'll give you one. PageTemplateFile stops Zope from starting if the file they refer to does not exist, rather than the 'at-access-time' error they used to generate. When you have place holder code and templates in abstract base-classes, this sucks the big one let me tell you. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )