Re: How to support a non-standard encoding?

2012-01-08 Thread Ivan
Dear jmf, Tim Thanks for these pointers. They look v useful. I'll have a go and report back (with success I hope). Best wishes Ivan On 06/01/2012 20:42, Tim Wintle wrote: On Fri, 2012-01-06 at 12:00 -0800, jmfauth wrote: The distibution of such a codec may be a problem. There is a

Re: How to support a non-standard encoding?

2012-01-08 Thread Thomas Rachel
Am 06.01.2012 21:00 schrieb jmfauth: Another simple approach, os independent. You probably do not write your code in iso-6937, but you only need to encode/decode some bytes sequence on the fly. In that case, work with bytes, create a couple of coding / decoding functions with a createddict

How to support a non-standard encoding?

2012-01-06 Thread Ivan
Dear All I'm developing a python application for which I need to support a non-standard character encoding (specifically ISO 6937/2-1983, Addendum 1-1989). Here are some of the properties of the encoding and its use in the application: - I need to read and write data to/from files. The

Re: How to support a non-standard encoding?

2012-01-06 Thread Tim Wintle
On Fri, 2012-01-06 at 10:03 +, Ivan wrote: Dear All I'm developing a python application for which I need to support a non-standard character encoding (specifically ISO 6937/2-1983, Addendum 1-1989). If your system version of iconv contains that encoding (mine does) then you could use

Re: How to support a non-standard encoding?

2012-01-06 Thread Ivan Uemlianin
Dear Tim Thanks for your help. If your system version of iconv contains that encoding, ... Alas, it doesn't: $ iconv -l |grep 6937 $ Also, I'd like to package the app so other people could use it, so I wouldn't want to depend too much on the local OS. Best wishes Ivan On

Re: How to support a non-standard encoding?

2012-01-06 Thread jmfauth
On 6 jan, 11:03, Ivan i...@llaisdy.com wrote: Dear All I'm developing a python application for which I need to support a non-standard character encoding (specifically ISO 6937/2-1983, Addendum 1-1989).  Here are some of the properties of the encoding and its use in the application:    - I

Re: How to support a non-standard encoding?

2012-01-06 Thread Tim Wintle
On Fri, 2012-01-06 at 12:00 -0800, jmfauth wrote: The distibution of such a codec may be a problem. There is a register_codec method (or similar) in the codecs module. Tim -- http://mail.python.org/mailman/listinfo/python-list