I'm ok with calling this "works as intended" if the encoding experts are. Since I am *not* an expert on encoding, I ran it up the flag pole. ________________________________________ From: pharo-project-bounces@lists.gforge.inria.fr [pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Philippe Marschall [kustos@gmx.net] Sent: Sunday, July 25, 2010 3:57 AM To: pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Invalid utf8 input detected: now what? On 23.07.2010 15:15, Schwab,Wilhelm K wrote:
No dialogs, please :) Actually, it would be fine if there were a different stream class or simply a different method/state (encoding =#userInteraction or something??) that is understood to negotiate such details with "the user." In general, exception is the correct way to handle this: the stream "knows" what is wrong; the application will know what to make of it. If the encoding can be detected automatically, that would be great.
There is no way to do this. The only thing that can be determined is that something is not utf-8. The stream did that reliably. But you said you already know the encoding, so just set in on the stream and it should work.
Firefox tells me that the encoding is ISO-8859-1;
ISO-8859-1 and ISO-8859-15 are not the same. Cheers Philippe _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project