Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-25 Thread Andreas Jung
--On 25. August 2007 15:48:04 +0200 Sascha Welter <[EMAIL PROTECTED]> wrote: (Fri, Aug 24, 2007 at 10:26:42AM +0200) Patrick Ulmer wrote/schrieb/egrapse: Now I only must find the right place for setdefaultencoding() so it only affect my zope-instance. Install a separate python that is use

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-25 Thread Sascha Welter
(Fri, Aug 24, 2007 at 10:26:42AM +0200) Patrick Ulmer wrote/schrieb/egrapse: > Now I only must find the right place for setdefaultencoding() so > it only affect my zope-instance. Install a separate python that is used only by your zope instance. Use setdefaultencoding only there. Regards, Sascha

RE: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Dieter Maurer
Doyon, Jean-Francois wrote at 2007-8-24 09:36 -0400: > ... >setdefaultencoding() is apparently frowned upon ... Not sure why though. Occasionally, a package writer expects that "str" converts to ASCII, such that try: ascii = str(unicodeStr) except UnicodeError: # non ascii can b

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Dieter Maurer
Patrick Ulmer wrote at 2007-8-24 10:26 +0200: >I think I solved the problem. > > > >works. I read some further and found out that I should use something like > >import sys >sys.setdefaultencoding('utf-8') > >I set it global in sitecustomize.py under /usr/lib/python2.4/site-packages and >then > >

RE: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Doyon, Jean-Francois
rting to any "trickery". setdefaultencoding() is apparently frowned upon ... Not sure why though. Good luck! J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Ulmer Sent: August 24, 2007 04:27 To: zope@zope.org Subject: Re: [Zope] u

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Patrick Ulmer
Hi, I think I solved the problem. works. I read some further and found out that I should use something like import sys sys.setdefaultencoding('utf-8') I set it global in sitecustomize.py under /usr/lib/python2.4/site-packages and then works. Now I only must find the right place for setd

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Patrick Ulmer
>> I have checked it but it is the same problem. Browser is encoding in >> utf-8 correct, but the result (html sourcecode from zope) is not utf-8 >> anymore after inserting and I >> don't know why it changed. How can a dtml-var-tag changed the encoding >> for the document? >> > > What about > >

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Andreas Jung
--On 24. August 2007 09:36:30 +0200 Jaroslav Lukesh <[EMAIL PROTECTED]> wrote: - Original Message - From: "Patrick Ulmer" <[EMAIL PROTECTED]> The http-equiv tag means not much to browser. Try setting the content-type including the charset within the HTTP response (REQUEST.RESPONSE.

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Jaroslav Lukesh
- Original Message - From: "Patrick Ulmer" <[EMAIL PROTECTED]> The http-equiv tag means not much to browser. Try setting the content-type including the charset within the HTTP response (REQUEST.RESPONSE.setHeader(...)). I have checked it but it is the same problem. Browser is encoding

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-24 Thread Patrick Ulmer
Hi, >> 4. I insert html-code and some russian chars for testing >> >> >> >> >> >> >>...russian chars... >> >> >> >> After Saving all looks great in ZMI and also in my webbrowser. >> >> 5. Now I add one line to use a MessageCatalog: >> >> >> >> After that, all of my utf-8-chars are br

Re: [Zope] utf-8 problem in Zope when using Localizer

2007-08-23 Thread Andreas Jung
--On 24. August 2007 08:32:17 +0200 Patrick Ulmer <[EMAIL PROTECTED]> wrote: Hi, because nobody in der Localizer-Mailings list react and I thinks it could be a common problem with utf-8 in zope, I ask my question here also. I use Localizer 1.2.1 and I try out some things and all looks great