那我就爱莫能助了.
我只能够告诉你,ResourceBundle读取properties文件的时候,它不管你是用什么编码,都会使用ISO-8859-1来解码.
so,如果你用的不是ISO-8859-1编码,就需要再处理一遍.
我只能够告诉你,ResourceBundle读取properties文件的时候,它不管你是用什么编码,都会使用ISO-8859-1来解码.
so,如果你用的不是ISO-8859-1编码,就需要再处理一遍.
public PropertyResourceBundle(Reader reader) throws IOException
Reader
. Unlike the constructor PropertyResourceBundle(InputStream)
, there is no limitation as to the encoding of the input property file.
reader
- a Reader that represents a property file to read from. IOException
- if an I/O error occurs NullPointerException
- if reader
is null