Pages

Wednesday, June 29, 2016

Removing unrecognized ASCII characters from string c#


var stripped = Regex.Replace("străipped of baâ€d charâ€cters", "[^ -~]", "");
[ -~] matches all printable ascii characters (light blue background)

No comments:

Post a Comment