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

后端 未结 4 993
逝去的感伤
逝去的感伤 2020-12-18 01:07

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 01:53

    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.

提交回复
热议问题