• Hello,

    I made a change to the code to fix the json_encode the problem with file names in UTF8.

    Added in “save_json_array”:
    foreach ($data as $key => $meta)
    {
    if (isset($meta[‘fn’]) AND !seems_utf8($meta[‘fn’]))// added code
    $meta[‘fn’]=mb_strtolower($meta[‘fn’], ‘UTF-8’);// added code
    fwrite($fp, json_encode($meta) . “\n”);
    }

    https://www.ads-software.com/plugins/image-cleanup/

  • The topic ‘Fix: json_encode convert image['fn'] to null’ is closed to new replies.