Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java 中的文件对象不能存储字符“-”。它将“-”更改为“-”。Java 不支持这个字符 ('-') 吗?
如果您byte[]用于写入文件,请使用正确的字符集,例如UTF-8
byte[]
UTF-8