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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'error:': 0.07; 'soap': 0.07; 'string': 0.09; '<?xml': 0.09; 'subject:characters': 0.09; 'python': 0.11; 'entities.': 0.16; 'quoted': 0.16; 'shape': 0.19; 'command': 0.22; 'team,': 0.22; 'sends': 0.24; 'script': 0.25; 'pass': 0.26; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'quotes': 0.31; 'saludos': 0.31; 'skip:? 20': 0.31; 'received:google.com': 0.35; 'subject:data': 0.36; 'expected': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'receive': 0.70; 'special': 0.74; 'faith': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=u8FEgt1YNJhL2tw/Eks4NdWdRWHf4nFpwnUPU3nqW4E=; b=V7OjTFT9YhxsNgH/IxIwrwHjNja8cCd71ilUelVmc1c2zurtfGmmnqQNrVJcjKrIqR V+1FxFy5ec8Gr6LDHT7Og2uNTBsF8hIajOhFGA1pTtWGLNkBr0vpxWVkOhMC5tE0DBsn vK0d8Hilwp2eRmIwLMFs3noNjQcEW4t4cJVKmSjYzmNqO0vGHaMPbfI+kI8TFj8PgzY/ hCDavEMcJkVDt+/QNR0DGl06VmG0j8OiwaWmnU9SLOL8hn4GqO42xKqps08D8EpCgmis phhpGZDLtJp97IJD9vV49W/UXTWLFbvuVpoL7gEHA02FnXSgG2s46zYIjzmuV9Nl+g5e eN5A== X-Received: by 10.182.78.41 with SMTP id y9mr29381697obw.69.1367322671434; Tue, 30 Apr 2013 04:51:11 -0700 (PDT) MIME-Version: 1.0 From: Ombongi Moraa Fe Date: Tue, 30 Apr 2013 14:50:31 +0300 Subject: RE: Passing special characters in soap data To: python-list@python.org Content-Type: multipart/alternative; boundary=047d7b2e47101fd3cc04db929e30 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: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367322680 news.xs4all.nl 15892 [2001:888:2000:d::a6]:48726 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44535 --047d7b2e47101fd3cc04db929e30 Content-Type: text/plain; charset=ISO-8859-1 Hi Team, My provider sends soap data to me as they receive from subscriber. as expected the messages with special characters like quotes are received as html entities. like the message below had a quote: I'll shape it up myself... Since i pass this data into my python script as a command line call, i get the error: /bin/sh: Syntax error: Unterminated quoted string how can i resolve this and any other html entities i receive? Saludos Ombongi Moraa Faith --047d7b2e47101fd3cc04db929e30 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Team,

My provider sends soap d= ata to me as they receive from subscriber. as expected the messages with sp= ecial characters like quotes are received as html entities.

like the message below had a quote:

<?xml version= =3D"1.0" encoding=3D"utf-8" ?><soapenv:Envelope .= ..<message>I&apos;ll shape it up myself</message>... </s= oapenv:Body></soapenv:Envelope>


Since i pass this data into my python script as a comma= nd line call, i get the error:

/bin/sh: Syntax error: Unterminated q= uoted string



how can i resolve this and any other html entities = i receive?

Saludos

Ombongi Moraa Faith

--047d7b2e47101fd3cc04db929e30--