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


Groups > comp.lang.python > #48916 > unrolled thread

Re: Dealing with ' (suds)

Started bydieter <dieter@handshake.de>
First post2013-06-22 08:10 +0200
Last post2013-06-22 08:10 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#48916 — Re: Dealing with &apos; (suds)

Fromdieter <dieter@handshake.de>
Date2013-06-22 08:10 +0200
SubjectRe: Dealing with &apos; (suds)
Message-ID<mailman.3687.1371881454.3114.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web