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


Groups > comp.lang.python > #48916

Re: Dealing with ' (suds)

From dieter <dieter@handshake.de>
Subject Re: Dealing with &apos; (suds)
Date 2013-06-22 08:10 +0200
References <CAM6w3nqRS=VLCJOuWBoUeBf5VjZAY2d3nGWkX0vVuKgBrEUqDw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3687.1371881454.3114.python-list@python.org> (permalink)

Show all headers | 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