How to save Chinese Characters to file with java?

前端 未结 6 1988
小蘑菇
小蘑菇 2020-12-13 22:10

I use the following code to save Chinese characters into a .txt file, but when I opened it with Wordpad, I couldn\'t read it.

StringBuffer Shanghai_StrBuf =          


        
6条回答
  •  春和景丽
    2020-12-13 22:43

    That reminds me:

    The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)

提交回复
热议问题