How to use Arcii code as a delimiter in C #

Source: Internet
Author: User

I received feedback yesterday that we need to use the delimiter of ARCII code as 0x01 as a string

The internet looked for the next, said to be adopted, or:? Sometimes it's not very safe, because you can't make sure that the strings you pass in don't have these characters, so what can you do to make sure it's foolproof?

Arcii code for the 0x01,0x02 character is the keyboard can not input, because with this can guarantee foolproof.

The Java version of the code is as follows

1 byte  B2[] = {0x01}; 2 New String (B2);

The following code for C #

1 byte [] b1={0x01}; 2 string a = Encoding.ASCII.GetString (B1);

How to use Arcii code as a delimiter in C #

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.