This commit is contained in:
Looly
2022-10-26 13:12:39 +08:00
parent d2e66a1ca2
commit c2262bc40e
2 changed files with 36 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ public class CharSequenceResource implements Resource, Serializable {
@Override
public byte[] readBytes() throws IORuntimeException {
return this.data.toString().getBytes(this.charset);
return StrUtil.bytes(this.data, this.charset);
}
}