Re: [Zope] japanese encoding

2010-02-28 Thread Yusei TAHARA
Hi, On Mon, 01 Mar 2010 06:35:51 +0900 Aaron Maupin wrote: > Yusei TAHARA wrote: > > Hi, > > > > Recent python includes japanese codecs so that you don't have to install > > JapaneseCodecs any longer. If you use python2.1, it is needed. > > > import codecs > codecs.lookup('iso-2022-j

Re: [Zope] japanese encoding

2010-02-28 Thread Aaron Maupin
Yusei TAHARA wrote: > Hi, > > Recent python includes japanese codecs so that you don't have to install > JapaneseCodecs any longer. If you use python2.1, it is needed. > import codecs codecs.lookup('iso-2022-jp') > Thanks Yusei! The above works within the Python console, but within a

Re: [Zope] japanese encoding

2010-02-26 Thread Yusei TAHARA
Hi, Recent python includes japanese codecs so that you don't have to install JapaneseCodecs any longer. If you use python2.1, it is needed. >>> import codecs >>> codecs.lookup('iso-2022-jp') Regards, Yusei On Sat, 27 Feb 2010 04:27:23 +0900 Aaron Maupin wrote: > Hi guys, > > I'm having trou

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Andrew Milton wrote: > try doing > > import japanese.aliases > > and see if that causes an error that's otherwise being hidden. > Hmmm. Within a Python script I get asked for my Zope username and password again, which isn't accepted, and then a 'You are not allowed to access 'aliases' in th

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
+---[ Aaron Maupin ]-- | Perhaps I should also mention that I can log into the server, open up a | python console, and type: | | >>> import japanese | >>> text = 'blahblah' | >>> text = unicode(text, 'utf-8') | >>> text = text.encode('japanese.iso-2022-jp') | | with n

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Perhaps I should also mention that I can log into the server, open up a python console, and type: >>> import japanese >>> text = 'blahblah' >>> text = unicode(text, 'utf-8') >>> text = text.encode('japanese.iso-2022-jp') with no problems. 'japanese' is installed in /usr/lib/python2.4/site-p

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
+---[ Aaron Maupin ]-- | Andrew Milton wrote: | >+---[ Aaron Maupin ]-- | >| Andrew Milton wrote: | >| | >| >Tried simply; text.encode('iso-2022-jp') ? | >| | >| Yes, I've tried that. I get 'unknown encoding: iso-2022-jp' | > | >"japanese.python.is

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Andrew Milton wrote: > +---[ Aaron Maupin ]-- > | Andrew Milton wrote: > | > | >Tried simply; text.encode('iso-2022-jp') ? > | > | Yes, I've tried that. I get 'unknown encoding: iso-2022-jp' > > "japanese.python.iso-2022-jp" Not sure why that would work, but I just trie

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
+---[ Aaron Maupin ]-- | Andrew Milton wrote: | | >Tried simply; text.encode('iso-2022-jp') ? | | Yes, I've tried that. I get 'unknown encoding: iso-2022-jp' "japanese.python.iso-2022-jp" -- Andrew Milton a...@theinternet.com.au

Re: [Zope] japanese encoding

2010-02-26 Thread Aaron Maupin
Andrew Milton wrote: > Tried simply; text.encode('iso-2022-jp') ? Yes, I've tried that. I get 'unknown encoding: iso-2022-jp' Aaron ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] japanese encoding

2010-02-26 Thread Andrew Milton
+---[ Aaron Maupin ]-- | Hi guys, | | I'm having trouble installing and using the japanese codecs (from | http://www.python.jp/pub/JapaneseCodecs )with Zope on a shared host. I | just can't seem to get the encodings available for the python used by | the Zope install. [sn