Subject: The mailing list for listmasters using Sympa
List archive
RE: [sympa-users] sympa_soap_client.pl and special characters
- From: Steve Shipway <address@concealed>
- To: Alexander Bech <address@concealed>, "address@concealed" <address@concealed>
- Subject: RE: [sympa-users] sympa_soap_client.pl and special characters
- Date: Sun, 20 Dec 2015 23:30:40 +0000
Title: sympa_soap_client.pl and special characters
Ah… my patch is responsible for get/setCustom and get/setDetails in 6.1.x; they both made it into 6.2. The add function is part of the standard package of course.
They both call List::setXMLCustomAttribute to create the attribute, relying on the main SOAP parsing to provide the correct string, and so I expect that setDetails will also have the problem if you use it to set the attribute (you can pass additional key/value pairs to setDetails to do this).
The gecos setting by setDetails is done by calling List::update_user with the gecos value as passed. The add call uses List::add_user to add the user (and gecos) value straight to the list.
None of these do anything special for MIME encoding; my only guess at the moment is that update_user handles 8bit chars better than add_user and setXMLCustomAttribute. Checking the code in 6.1 seems to show they both only use $dbh->quote() so I’m not sure why one works and the other does not.
Under 6.2.12 things are done differently; as I only have 6.2.4 here I cannot make a meaningful test comparison. 6.2.12 appears to do special encoding for custom variables, so it may work better there.
I have run a quick test under 6.2.4 and the ‘add’ function and ‘setDetails’ both seem to set accented characters correctly.
Steve
From: address@concealed [mailto:address@concealed] On Behalf Of Alexander Bech
Hi, |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
-
[sympa-users] sympa_soap_client.pl and special characters,
Alexander Bech, 12/18/2015
- RE: [sympa-users] sympa_soap_client.pl and special characters, Steve Shipway, 12/20/2015
Archive powered by MHonArc 2.6.19+.