Home > front end >  Content of Japanese, use the replace error problem
Content of Japanese, use the replace error problem

Time:12-13

I use the replace (text, blacklist, * * *, 1, 1, 1) block illegal words,

Text with Japanese make mistakes,

To find the reason, is because the replace the last parameter 1 is according to the text, and, need to change to a binary didn't support the Japanese, but changed to binary case-insensitive, and illegal in English word to case-sensitive,

A bit dizzy,

Don't need to determine the body have Japanese, so, according to the binary, if not, then according to the text comparison?

CodePudding user response:

Use regular expressions to repace try, support Unicode

CodePudding user response:

The replace does not support utf-8 ASP?

The original poster can yet be regarded as the method of choice
  •  Tags:  
  • ASP
  • Related