campaignmonitor / createsend-php

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

Update serialisation.php - utf8_encode is deprecated in php8.2 #118

Closed obj63mc closed 6 months ago

obj63mc commented 1 year ago

In php8.2 utf8_encode nad utf8_decode is depricated. You are already checking for mbstring extension and functions and if available you were then encoding the string. This is simply setting the function to utilize the mbstring method to actually encode the string in a matter thatis compatible with php8.2.

https://php.watch/versions/8.2/utf8_encode-utf8_decode-deprecated#utf8_encode-any-mbstring

wilr commented 6 months ago

Any chance of getting this merged?