原创 java輸入,輸出的字符編碼問題

我們讀取文本(無論從那兒讀,鍵盤,硬盤)的時候: 儘量使用: (從硬盤讀)InputStreamReader ir=new           InputStreamReader(fileInputStream,"編碼"); (從鍵盤讀)