php-i18n | 2002091
Date: 09/04/02
- Next message: Marco Muratori: "[PHP-I18N] gettext"
- Previous message: Rui Hirokawa: "[PHP-I18N] Re: Japanese: multiple internal encodings possible?"
- Next in thread: Jean-Christian Imbeault: "[PHP-I18N] Re: ISO to EUC convertion"
- Reply: Jean-Christian Imbeault: "[PHP-I18N] Re: ISO to EUC convertion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I have requirement like this... Read a TEXT file that has codes that
represents Japanese chars in iso-8859-1 encoding.
example "計画対比" I have to read these and convert
into EUC and write the EUC to a different file.
"
<?php
$fpI = fopen("E:\\input.txt","r");
$fpO = fopen("E:\\output.txt","w+");
$row=0;
while ($data = fgetcsv ($fpI, 1000, "=")) {
$num = count ($data);
$row++;
$str=mb_convert_encoding ( $data[0], "EUC-JP", "ASCII") . "\n";
fputs($fpO, $str);
}
?>
"
But this doesnt work. Can u please guide me how to achieve this.
Thankyou in advance,
Prabahar
_____________________________________________________________________
Any Opinions, explicit or implied, are solely those of the author and do not necessarily
represent those of Questech. This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail is strictly forbidden.
_____________________________________________________________________
-- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Marco Muratori: "[PHP-I18N] gettext"
- Previous message: Rui Hirokawa: "[PHP-I18N] Re: Japanese: multiple internal encodings possible?"
- Next in thread: Jean-Christian Imbeault: "[PHP-I18N] Re: ISO to EUC convertion"
- Reply: Jean-Christian Imbeault: "[PHP-I18N] Re: ISO to EUC convertion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

