The program takes the key value from the registry, but in the resulting string there are unknown characters that interfere with the proper handling of strings. The program itself does not display these symbols in ordinary Label.
For example, the program received a string in the log file:
On the web page:
And I need to somehow trim everything starting from nul. How to do it?


string.Remove(string.IndexOf(nul))but I don’t know what the code for the symbol nul. - Dez Max