简体   繁体   中英

c# Unicode Null Representation code character array

I am creating a character array.Is there a unicode code for null? For example if I need to put a null in the character array?And also when I use the unicode table https://unicode-table.com/en/#myanmar which is the code I should use since there is HTML-code,Unicode number... I'm confused.

char[] specialSymb= new char[] { ' ', ',', '.','?','!'}; 

According to Microsoft's documentation on Character literals (Which is what you are asking for) these are the following types of null encoding:

Escape sequence

\0

Unicode encoding

0x0000

EDIT:

For HTML Unicodes

%00

or

�

Source: https://msdn.microsoft.com/en-us/library/aa691087(v=vs.71).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM