EN
C# / .NET - no-break / non-breaking space in string
0 points
In this article, we would like to show you how to insert no-break / non-breaking space in string in C#.
Quick solution:
xxxxxxxxxx
1
string text = "a \u00A0\u00A0\u00A0 b"; // U+00A0
2
3
Console.WriteLine(text);
Output:
xxxxxxxxxx
1
a b