Yngvarr

Generation

generate functionTue, 21 Mar 2023

file to utf8

function convert_to_utf8($filename) { $contents = file_get_contents($filename); $contents = mb_convert_encoding($contents, 'UTF-8'); file_put_contents($filename, $contents); } convert_to_utf8('C:\Users\hch\Desktop\test.txt');

Questions about programming?Chat with your personal AI assistant