How to convert utf8 string to utf8 byte array?

前端 未结 0 996
有刺的猬
有刺的猬 2021-02-12 04:21

How can I convert string to utf8 byte array, I have this sample code:

This works ok:

StreamWriter file = new StreamWriter(file1, false, Encoding.UTF8);
f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题