Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'pypi': 0.04; 'python': 0.08; 'url:github': 0.09; 'library': 0.13; 'non-standard': 0.16; 'os.': 0.16; 'seine': 0.16; 'subject:non': 0.16; 'cc:addr:python- list': 0.16; "wouldn't": 0.17; 'wrote:': 0.18; 'help.': 0.19; 'cc:no real name:2**0': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:2**0': 0.24; "i'm": 0.26; 'developing': 0.26; 'cc:addr:python.org': 0.29; 'subject:support': 0.30; 'subject:?': 0.31; 'thanks': 0.31; 'app': 0.31; "i've": 0.31; 'version': 0.32; 'header:User-Agent:1': 0.33; 'fri,': 0.34; 'character': 0.34; 'too': 0.34; 'subject:How': 0.35; '...': 0.36; 'depend': 0.37; 'encoding': 0.37; 'received:192': 0.37; 'could': 0.37; 'received:org': 0.38; "i'd": 0.39; 'should': 0.39; 'received:192.168': 0.40; 'your': 0.61; 'received:77': 0.63; 'skip:w 30': 0.63; 'dear': 0.64; 'wishes': 0.64; 'here:': 0.66; '10:03': 0.84; 'encoding,': 0.84; 'received:77.75': 0.84 Date: Fri, 06 Jan 2012 14:03:56 +0000 From: Ivan Uemlianin User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: tim.wintle@teamrubber.com Subject: Re: How to support a non-standard encoding? References: <1325857646.7790.4.camel@tim-laptop> In-Reply-To: <1325857646.7790.4.camel@tim-laptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 56 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1325860009 news.xs4all.nl 6955 [2001:888:2000:d::a6]:48410 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18603 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 06/01/2012 13:47, Tim Wintle wrote: > On Fri, 2012-01-06 at 10:03 +0000, 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 a wrapped iconv library to avoid re-inventing the wheel. > > I've got a forked version of the "iconv" package from pypi available > here: > > > > .. it should work on python2.5-2.7 > > Tim > -- ============================================================ Ivan A. Uemlianin Llaisdy Speech Technology Research and Development ivan@llaisdy.com www.llaisdy.com llaisdy.wordpress.com github.com/llaisdy www.linkedin.com/in/ivanuemlianin "Froh, froh! Wie seine Sonnen, seine Sonnen fliegen" (Schiller, Beethoven) ============================================================