dolibarr/dev/test/testutf.php

15 lines
404 B
PHP
Raw Normal View History

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