Re: Bad char Translation

From: Date: Fri, 22 Feb 2002 15:32:45 +0000
Subject: Re: Bad char Translation
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12225@lists.php.net to get a copy of this message
The source file is ISO-8859-1.. and the result is not displayed on a webpage but in a console ... This is where the problem come .... when i display the result in the console > I've got a text file containing "blés, Châteaux ..." (without quotes) > > I'm reading this file like this > > $FileName = "Test.txt"; > $FileHand = fopen($FileName, "rb"); > $Data = fread($FileHand, filesize($FileName)); > fclose($FileHand); > print_r($Data); > > Under Linux, by asking the script throught an HTTP server ... i've got the > good text > blés, Châteaux ... > > But when i launch the script through the console (under windows 2000) ... > characters are translated : > blùs, Chôteaux ... > > what does it means .. .?

« previous php.windows (#12225) next »