getBytes() Encodes this String into a sequence of bytes using the platform's default charset, storing the result into a new byte array.getBytes(String charsetName) Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array.楼主这种问题最好去查一下jdk的帮助 看一下相关类的方法就是了
Encodes this String into a sequence of bytes using the platform's default charset, storing the result into a new byte array.getBytes(String charsetName)
Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array.楼主这种问题最好去查一下jdk的帮助
看一下相关类的方法就是了