Is it possible to add data to a string after adding “\0” (null)?

后端 未结 4 1900
故里飘歌
故里飘歌 2020-12-18 01:16

I have a string that I am creating, and I need to add multiple \"\\0\" (null) characters to the string. Between each null character, is other text data (Just ASCII alphanume

4条回答
  •  北海茫月
    2020-12-18 02:07

    Same behavior for the StringBuffer class?

    Since "\0" makes some trouble, I would recommend to not use it. I would try to replace some better delimiter with "\0" when actually writing the string to your DB.

提交回复
热议问题