Hello!

I need to read the content of a file that is saved with an old DOS ascii
format (Cp850 if anyone is interested), so I need to use something like:

InputStreamReader(InputStream in, String charsetName);
Where charsetName == "Cp850" in my case

Reading the file like this works very well during testcases, but when I
try the same within my Merlin app, I get an exception saying that the
encoding is not supported. I have added the charsets.jar to Merlins
classpath.

Does anyone knows what may be wrong here??

Tia,

/Torbj�rn

--- Stacktrace ---

java.io.UnsupportedEncodingException: Cp850
        at sun.io.Converters.getConverterClass(Unknown Source)
        at sun.io.Converters.newConverter(Unknown Source)
        at sun.io.ByteToCharConverter.getConverter(Unknown Source)
        at sun.nio.cs.StreamDecoder$ConverterSD.<init>(Unknown Source)
        at sun.nio.cs.StreamDecoder$ConverterSD.<init>(Unknown Source)
        at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source)
        at java.io.InputStreamReader.<init>(Unknown Source)

...




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to