如何讀取Java中的非字母數字字符(如中文字符)?我試圖從.properties
文件中讀取一個值,但輸出中出現了破碎的字符。如何讀取非字母數字字符
filename = some method returning the file in Chinese
response.setProperty("Content-disposition", "attachment; filename=\"" + fileName +"\"");
response.setContentType("text/xlscharset=UTF-8");
response.setCharacterEncoding("utf-8");
把你有問題的嘗試。 – weston
編輯問題謝謝。評論中的代碼看起來不可讀。也包括設置文件的一部分。 – weston