Hello,
I got some code from intenet. which extrator ms word file to text file. 
i try it in English, it do right. but in case of Chinese characters. it 
will short some.that's to say,only part of content was saved ,part of 
them lost. no matter it short or long file. why? what can i do? my code 
as follows:
public boolean Extrator(){
try
{ 
file = new WordDocument(fileName); 

//Writer out = new BufferedWriter(new FileWriter(outFileName));
Writer out = new OutputStreamWriter(new 
FileOutputStream(outFileName),"utf-8");
file.writeAllText(out);

//file.closeDoc();
out.flush();
out.close(); 
} catch(Throwable t){
t.printStackTrace();
return false;
}
return true; 
} 
}
thanks. 
jack





---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

Reply via email to