jjzjj

DirectionResponse

全部标签

java - 如何用utf-8读写这个?

我遇到错误io.MalformedByteSequenceException:Invalidbyte2of2-byteUTF-8sequence解决办法是用UTF-8读写文件。我的代码是:InputStreaminput=null;OutputStreamoutput=null;OutputStreamWriterbufferedWriter=newOutputStreamWriter(output,"UTF8");input=newURL(url).openStream();output=newFileOutputStream("DirectionResponse.xml");byt