RowFilter meets special characters * % & #39; [] \, and rowfilter special characters

Source: Internet
Author: User

RowFilter encounters special characters * % '[] \ and rowfilter special characters

Data of DataView needs to be analyzed from time to time during development. Computing, filtering, etc. However, the processed values may contain special characters *, %, ', [,], and \. You need to manually process these special characters in the expression, and then use "[" and "]" to enclose them. There may also be single quotes.

For example, the following is the problem encountered by netizens "when the DataTable column names encounter special characters" ["and"] "when an example of http://www.cnblogs.com/insus/p/3718416.html.

Therefore, Insus. NET wants to write a function once and for all to process them:

 

How to use:

 


Special characters in XML returned by ajax

For some special characters in xml, try using the CDDATA tag.
<! [CDATA [
Content <font color = red> <B> highlighted </B> </font>
]>

If not, use BASE64 to transcode your specific content.

In the console application, the user is allowed to enter a string of characters consecutively. When a special character is encountered, the user is automatically disabled.

# Include <stdio. h>
# Include <conio. h>

Int main ()
{
Char ch;
While (ch = getche ())
{
If (ch = '+ ')
Break;
}
Printf ("input end \ n ");
Return 0;
} Try

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.