Files
dolibarr/dev/test/testutf.php
2009-12-14 00:50:34 +00:00

15 lines
437 B
PHP

<?php
// This source file must be UTF-8 encoded
$filename='filewithé';
print 'Test to create a file on disk with name '.$filename."<br>\n";
print 'ENV[LANG]='.$_ENV["LANG"]."<br>\n";
print 'ENV[LANGUAGE]='.$_ENV["LANGUAGE"]."<br>\n";
// Si LANG contient UTF8, system en UTF8, pas de conversion requise pour fopen
$s=fopen('/tmp/'.$filename,'w');
fclose($s);
print 'Files has been created. Check its name from your explorer'."\n";
?>