Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'encoding': 0.05; 'failing': 0.07; 'string': 0.09; 'ascii': 0.09; 'interpreted': 0.09; 'parsed': 0.09; 'subject:module': 0.09; '2.7': 0.14; 'adjusting': 0.16; 'appreciated!': 0.16; 'base64': 0.16; 'ldif': 0.16; 'received:172.18.0': 0.16; 'thanks,': 0.17; 'module': 0.19; 'to:name:python-list@python.org': 0.22; 'non': 0.24; 'handling': 0.26; 'characters': 0.30; 'direction': 0.30; 'raw': 0.33; 'charset :us-ascii': 0.36; "i'll": 0.36; 'requirements': 0.37; 'being': 0.38; 'requiring': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'skip:z 20': 0.60; 'received:unknown': 0.61; 'such': 0.63; 'insight,': 0.84 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=/OolT88hxzZB4/D8S1pLLnpaRVcdzwgG3HupJc0czqk= c=1 sm=1 a=P90J6pEA2ccA:10 a=7PYXob_7ZXMA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=oNw28mxuUhXRB3mVwYQ4Ag==:17 a=aCG2tmtBnf1cz30jvrEA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 From: "Joseph L. Casale" To: "python-list@python.org" Subject: Ldap module and base64 oncoding Thread-Topic: Ldap module and base64 oncoding Thread-Index: AQHOWMFJ2gcVydFyA0eXB9j8yy7c/Q== Date: Fri, 24 May 2013 21:00:01 +0000 Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.18.0.4] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369429274 news.xs4all.nl 15941 [2001:888:2000:d::a6]:52486 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45918 I have some data I am working with that is not being interpreted as a strin= g requiring=0A= base64 encoding when sent to the ldif module for output.=0A= =0A= The base64 string parsed is ZGV0XDMzMTB3YmJccGc=3D and the raw string is de= t\3310wbb\pg.=0A= I'll admit my understanding of the handling requirements of non ascii data = in 2.7 is weak=0A= and as such I am failing at adjusting the regex that deduces is the string = contains characters=0A= requiring base64 encoding when being output.=0A= =0A= Any insight, or nudges in the right direction would be appreciated!=0A= Thanks,=0A= jlc=