Home > database >  Pb ~ escape character processing problem, to overcome the rush!
Pb ~ escape character processing problem, to overcome the rush!

Time:09-25

"$$- 400 ~ the card in the report the loss of state can't consumption Orap32 % % % % ~ $$"
Such a string, for example, to put it in accordance with the ~ segmentation split apart, to the data in the group:
In the code written like this:
String ls_temp="$$- 400 ~ the card in the report the loss of state can't consumption Orap32 % % % % ~ $$"

But the pb ~ is the escape character, you can see, in the debug ls_temp only into:

"The card is $$- 400 in the report the loss of state can't consumption Orap32 % % % % $$"

To automatically remove the

Each master, please indicate the direction! Thank you

CodePudding user response:

Each answer!

CodePudding user response:

Less people here really, seems to have PB has no future

CodePudding user response:

String ls_temp="$$- 400 ~ ~ the card in the report the loss of state can't consumption Orap32 % % % % ~ ~ $$"

CodePudding user response:

Pay attention to

If the string came from a file or database to read how to assign a value to a string?

CodePudding user response:

If the string is the same, is fixed, that according to the third floor completely can handle,
4th floor said is right, I encountered this problem, don't know how to deal with

CodePudding user response:

Can try adding a prefix to try it in front of the string, like Java add @, you try to add try adding a prefix to try it in front of the string, like Java add @, you try to add

CodePudding user response:

Only through one by one, the string of ~ to ~ ~
  • Related