[EMAIL PROTECTED] writes: > I was thinking if the manipulation of ISO-2022-JP had been brought > up early on (that is, in the days of 1.3 and 1.4) and there had been > significant interest from users, some way of working with it better > might have been developed.
Perhaps, I'm not sure. But currently, the only other alternatives are to escape all `%' signs as `%%', or do a double charset conversion. That is, store the templates in iso-2022-jp, then convert to euc-jp before string substitution, and then convert back to iso-2022-jp before sending. I think it's just easier to use only euc-jp in the templates. > [ I just remember how much more difficulty I had (years ago) doing > Japanese manipulation in Python compared to the other languages I > was using. I'd be happy if the support has improved as I've started > using Python recently -- perhaps I'll find out if I start doing > manipulation of Japanese text. ] I can only speak for manipulation of Japanese as it relates to e-mail, but the support for that is now very good in Python's new email package. It handles all the necessary charset encoding and conversion very seamlessly. I'm told that even Perl doesn't have anything that automates this process for e-mail (i.e, the programmer has to do all that work by hand). I think (hope) you'll be pleased with how TMDA handles Japanese once I finish what I'm working on. One thing is that the Japanese support requires installation of a Unicode codec (http://www.asahi-net.or.jp/~rd6t-kjym/python/). This is something you'll probably want to install anyway if you plan to do more work with Python and Japanese. This will eventually be integrated into the core of Python. In the meantime, it's quite easy to install. There are even Debian and FreeBSD packages available for JapaneseCodecs. BTW, Korean and Chinese also require Unicode codecs, and this of course will be detailed in my documentation. _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
