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
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
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
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
+---[ 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
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
+---[ 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
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
+---[ 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
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!
+---[ 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
11 matches
Mail list logo