java的properties文件,输入中文显示ascii

  修改方法:

    右击该properties文件--properties--Resource--Text file encoding,选中other,选择其它编码方式,

    (1)选择UTF-8或GBK,这样就能在properties里面输入中文,而不会自动转成Unicode了。

    (2)选择US-ASCII时,输入中文会自动转换为对应的ASCII值。