The problem is complex and it makes me scratch my head. I am testing a campaign, using an HTML page with a Paypal donation button. It is not a form but an image with the following HREF, which works in the original web page and also the HTML version of the campaign:
The text version of the campaign cannot show the button, of course, so I am copying that HREF into the message - but the PHPlist editor changes that line into the following, which Paypal cannot digest:
It does this only with the variable currency_code, not with the other variables contained in the URL.
The only way I could fix this was to go directly to the MySQL database and change the text in the message record (I am talking about a self-hosted version of PHPlist, version 3.3.1) - but after doing that I must completely avoid the editor window, or it will produce the error again.
Is there a setting anywhere that I have to change to avoid this?
I am copy/pasting the URL into the editor window for the text message of a campaign (2.tab). I then watch as the editor is changing the string “¤cy_code=DKK” into the string “¤cy_code=DKK” when I say “save and continue editing”. This is then the value that is written into the database records that are storing the campaign fields.
If I try to overwrite the changed text with the correct text, the editor changes it again upon saving. If I do the same in a separate line only with the string “¤cy_code=DKK”, the same thing happens, so it has nothing at all to do with the Paypal link. Other variables, like “&cmd=_donations”, are not being changed.
So it seems that the string “¤” is translated to a character or symbol outside the alphabet, and I cannot find an editor setting that prevents that!
And the problem seems to be browser independent - I tried it in Chrome, Firefox, Edge and IE - it is the same in all of these browsers.
By the way, the link that you produced is not working either. It introduces “3D” characters that Paypal cannot parse. It goes to the Paypal homepage but not to the donation page that the link which I gave you in my first post builds from my parameters.
@hbeer54 Your explanation helps to be able to repeat the problem. It looks simply to be that the text message value is not escaped correctly, so the browser treats ¤ as a currency symbol.
You can work around the problem by modifying one line of the phplist code. File admin/send_core.php line 908