Friday

C#(csharp):remove (replace with whitespace) not allowed (non printable) characters from XML


rt = Regex.Replace(rt,"[\x01-\x1F]", "");


more...

1 comment:

Anonymous said...

also you can kick-off unnecessary chars from string by regexp
Dim s As String = Regex.Replace(sb.ToString, "[\xC2]", "")
s = Regex.Replace(s, "[\xA0]", "")

test smtp server with powershell

Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...