dolibarr/dev/test/testutf.php

15 lines
437 B
PHP
Raw Permalink Normal View History

2009-12-14 01:01:22 +01:00
<?php
// This source file must be UTF-8 encoded
2009-12-14 01:38:06 +01:00
$filename='filewithé';
2009-12-14 01:01:22 +01:00
2009-12-14 01:50:34 +01:00
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";
2009-12-14 01:35:03 +01:00
// Si LANG contient UTF8, system en UTF8, pas de conversion requise pour fopen
2009-12-14 01:01:22 +01:00
$s=fopen('/tmp/'.$filename,'w');
fclose($s);
print 'Files has been created. Check its name from your explorer'."\n";
?>