Yngvarr

Generation

generate functionTue, 21 Mar 2023

file to utf8

function file_get_contents_utf8($fn) { $content = file_get_contents($fn); return mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true)); }

Questions about programming?Chat with your personal AI assistant