byte, # char. # "2.4.4.4 " :
, 'a'.
...
escape- , , , \x.
, "\xF0..." U+F0, C3 B0.
Unicode, 0xF0, , , 0xFO.
U+10000 F0 90 80 80 ( U+FFFF, EF BF BF). F1 .... .. U+40000, F1 80 80 80, U+3FFFF F0 BF BF BF.
, U+10000 U+3FFFF. ,
sText = Regex.Replace (sText, "[\\x10000-\\x3FFFF]", "");
, , . , .
static void Main(string[] args)
{
string input = "] 𝄞 (";
Console.Write("Input length {0} : '{1}' : ", input.Length, input);
foreach (char cc in input)
{
Console.Write(" {0,2:X02}", (int)cc);
}
Console.WriteLine();
}
. , @Jeppe .
Input length 6 : '] ?? (' : 5D 20 D834 DD1E 20 28