java.io.UnsupportedEncodingException: EUC_CN while opening Northwind.xls/SmartMarkerDesigner.xls

Hi,

i'm getting an

java.io.UnsupportedEncodingException: EUC_CN
at sun.io.Converters.getConverterClass(Unknown Source)
at sun.io.Converters.newConverter(Unknown Source)
at sun.io.ByteToCharConverter.getConverter(Unknown Source)
at java.lang.StringCoding.decode(Unknown Source)
at java.lang.String.(Unknown Source)
at com.aspose.cells.dc.b(Unknown Source)
at com.aspose.cells.dc.a(Unknown Source)
at com.aspose.cells.dc.(Unknown Source)
at com.aspose.cells.aF.(Unknown Source)
at com.aspose.cells.dF.a(Unknown Source)
at com.aspose.cells.dF.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at com.aspose.cells.WorkbookDesigner.open(Unknown Source)
at ConsoleDemo.createBySmart(ConsoleDemo.java:1780)
at ConsoleDemo.create(ConsoleDemo.java:114)
at ConsoleDemo.main(ConsoleDemo.java:38)

Exception in thread "main" java.io.IOException: It is not a valid excel file.
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.open(Unknown Source)
at com.aspose.cells.WorkbookDesigner.open(Unknown Source)
at ConsoleDemo.createBySmart(ConsoleDemo.java:1780)
at ConsoleDemo.create(ConsoleDemo.java:114)
at ConsoleDemo.main(ConsoleDemo.java:38)

while trying to run the demo (ConsoleDemo.java). I'm using eclipse and java 1.5 -> so i use the aspose.cells.jar (V 1.9.5 Hotfix, the latest one) of the JDK5.0 folder. Could someone please tell me what to do? I am trying to evaluate Aspose.Cells, but i can not solve this problem on my own.

br, klemensl

Hi,

Thanks for considering Aspose.Cells, The demo is ok here under our environment, I think maybe your system does not support charset "EUC_CN", would you please give us more info such as your OS, Language, Encoding Charset, JDK and so on so we can trace this issue? Thank you

It seems this issue being caused by the String encoding of document property, to go on with your current work, please remove the document property "Author" from file demos/consoleDemo/Northwind/Designer/SmartMarkerDesigner.xls and try the demo again. Thank you

Hi,

i opened and saved the SmartMarkerDesigner.xls document, now aspose.cells' WorkBookDesigner is able to open it (i do not have to remove the author).

OS: WXP Pro
Language: German
JDK: 1.5 Update 12
Encoding Charset: Charset.defaultCharset().name() -> windows-1252

Thx, br, klemens