Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48916

Re: Dealing with ' (suds)

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'parser': 0.07; 'bug.': 0.09; 'predefined': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.12; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'responses.': 0.16; '(in': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'looks': 0.24; "i've": 0.25; 'references': 0.26; 'somewhere': 0.26; 'header:X -Complaints-To:1': 0.27; 'xml': 0.29; "doesn't": 0.30; "i'm": 0.30; '(which': 0.31; 'asked': 0.31; 'occurs': 0.31; 'writes:': 0.31; 'probably': 0.32; 'level.': 0.33; 'could': 0.34; 'subject:with': 0.35; 'something': 0.35; 'convert': 0.35; 'there': 0.35; 'really': 0.36; 'processed': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'application': 0.37; 'problems': 0.38; 'to:addr :python-list': 0.38; 'rather': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'even': 0.60; 'most': 0.60; 'received:217': 0.63; 'more': 0.64; '(that': 0.65; 'side': 0.67; 'notices': 0.68; 'subscribers': 0.74; 'special': 0.74; 'analysis': 0.75; 'route': 0.84; 'difficult,': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From dieter <dieter@handshake.de>
Subject Re: Dealing with &apos; (suds)
Date Sat, 22 Jun 2013 08:10:41 +0200
References <CAM6w3nqRS=VLCJOuWBoUeBf5VjZAY2d3nGWkX0vVuKgBrEUqDw@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Gmane-NNTP-Posting-Host pd9e09684.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
Cancel-Lock sha1:90HsddV5p19oZfq7vZgQ31keTFM=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3687.1371881454.3114.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371881454 news.xs4all.nl 15997 [2001:888:2000:d::a6]:47858
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48916

Show key headers only | View raw


Ombongi Moraa Fe <moraa.lovetakes2@gmail.com> writes:

> I'm working with suds to send send messages to smsc. I've notices the
> messages with &apos; are really not processed on my side (which could mean
> an error occurs somewhere - most probably in my php script). SMSC has also
> asked that I 'take care of the &apos;' as it's the reason my subscribers
> may not be receiving the responses.
>
> How can i 'take care of &apos; ' so it doesn't give me problems in future?

"&apos;" is one of five so called entity references predefined
by the XML specification. The XML parser (that used by "suds")
should automatically convert it to "'". There should be no need
for your application to do anything special for "&apos;".

Of course, there might be a bug somewhere (in "suds" or its parser).
A deeper analysis would be necessary to verify this assumption
and to locate/fix the bug. Even if this looks more difficult,
I recommend to go this route rather than to try something
special for "&apos;" at the application level.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Dealing with &apos; (suds) dieter <dieter@handshake.de> - 2013-06-22 08:10 +0200

csiph-web