Skip to Content.
Sympa Menu

en - Re: [sympa-users] sympa_soap_client.pl and special characters

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Alexander Bech <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] sympa_soap_client.pl and special characters
  • Date: Thu, 10 Mar 2016 00:09:47 +0100

Am 18.12.2015 um 22:34 schrieb Alexander Bech:
sympa_soap_client.pl and special characters Hi,

i wrote a bash script to add subscribers to a list from a csv-file.
Works fine with the commands add, setDetails and setCustom.

However, there is a problem with special characters such as "umlaut marks" with add and setCustom commands.

Soap-command add:

sympa_soap_client.pl --trusted_application=soapapp --trusted_application_password=...pwd --soap_url=http://listen.bakarasse.de/sympasoap --service=add
--address@concealed --service_parameters=test5,address@concealed,Jürgen\ Adrian


calling authenticateRemoteAppAndRun( soapapp, detailspwd, address@concealed,add,test5,address@concealed,Jürgen Adrian)

0
    ''
result: gecos is wrong




this change in List.pm, sub createXMLCustomAttribute, gives me the
special characters back:

-        $XMLstr .= "<custom_attribute id=\"$k\"><value>".&tools::escape_html($custom_attr->{$k}{value})."</value></custom_attribute>";
+        $XMLstr .= "<custom_attribute id=\"$k\"><value>".Encode::decode_utf8(&tools::escape_html($custom_attr->{$k}{value}))."</value></custom_attribute>";





Thanks,
Alex

Attachment: png12B64fLp_5.png
Description: PNG image

PNG image




Archive powered by MHonArc 2.6.19+.

Top of Page