Remove incomplete multibyte character from string (PHP)

<?php
$cleaned = mb_convert_encoding($raw, 'UTF-8', 'UTF-8');

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.