campaignmonitor / createsend-php

A PHP library for the Campaign Monitor API
http://campaignmonitor.github.io/createsend-php
Other
285 stars 108 forks source link

vendor/campaignmonitor/createsend-php/class/serialisation.php:38 Function utf8_encode() is deprecated #119

Open wesyah234 opened 1 year ago

wesyah234 commented 1 year ago

Trying with php 8.2, I received the above deprecation message. Other than that, adding and deleting subscribers worked fine.

markmorris commented 7 months ago

Yeah i get this too, im admin currently stays in debug mode, so this is an issue for me. Ive even tried converting the strings to UTF-8 before i give them to CM, still errors.

markdavies commented 6 months ago

This is still an issue for me too ...

cardi777 commented 4 months ago

issue for me too

gedm commented 4 months ago

Change line 38 of serialisation.php from $v = utf8_encode($v); to $v = mb_convert_encoding($v, 'UTF-8', 'ISO-8859-1');

wesyah234 commented 4 months ago

Thanks. I just looked and there are 11 open pull requests on this repo, going back to 2016, the 2 most recent ones both providing the above fix for the serialisation.php file, submitted in June 2023 and November 2023. Is it safe to say Campaign Monitor has abandoned this library? I sure hope not!