Use *.data for tests data files

This commit is contained in:
Peter Kokot 2019-05-17 19:04:43 +02:00
parent d3c95db18c
commit 83bfbc2903
4 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ error_reporting=2047
--FILE--
<?php
//error_reporting(E_ALL);
$utf = implode('', file(__DIR__.'/Quotes.UTF-8'));
$utf = implode('', file(__DIR__.'/Quotes.UTF-8.data'));
print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));

View file

@ -14,8 +14,8 @@ function ascii2hex($ascii) {
return $hex;
}
$html_file = fopen(realpath(__DIR__) . '/html.raw', 'r');
$utf_8_filepath = realpath(__DIR__) . '/utf8.raw';
$html_file = fopen(realpath(__DIR__) . '/html.data', 'r');
$utf_8_filepath = realpath(__DIR__) . '/utf8.tmp';
$utf_8_file = fopen($utf_8_filepath, 'w+');
recode_file('html..utf8', $html_file, $utf_8_file);