From: Gibbs <rex...@ne...> - 2003-05-02 05:33:03
|
i try with the sample code inside the war -- Store.java, to store a BIG5 encoded file into eXist. it seems that the content has been encoded by eXist to codec other than BIG5 (i think eXist must have done some UTF-8 stuff on the content). but the other way i add my BIG5 file by "xadmin.xsp", it works absolutely fine. so what should i do now inorder to store it correctly, please help. here is the sample code of Store.java: File f = new File(file); if(!f.canRead()) System.err.println("can't read file " + file); document.setContent(f); System.out.print("storing document " + document.getId() + "..."); col.storeResource(document); System.out.println("ok."); |