Replace Invisible Characters – Control Chars
You can use this function to replace the invisible chars
Regex.Replace(s, @"[^\x20-\x7F]", "");
You can use this function to replace the invisible chars
Regex.Replace(s, @"[^\x20-\x7F]", "");
AI engineer and solution architect in Sydney. Agents, MCP, RAG, Azure, .NET, EV charging. I write about what breaks after go-live.
Normally when you have a UTF8 encoded file then it might have BOM character that will be rendered when you read it using filestream even though when you open the file with the notepad it doesn’t…
This is the class that can be used to look up a keyword from a string. This class is inherited from Regex class. Base Class public class ProductLookupRegex : Regex { public ProductLookupRegex() { // //…
This snippet code is credited to Scott’s Hanselman, This Resolve URL function is used where you want to implement it on your business layer. Methods: #region “Image URL helpers” public static string ResolveUrl(string originalUrl) { if…
I had a problem before where I build dynamic system (light dataset) for doing CRUD (Create, Read, Update and Delete) and I need to store the history of previous record before Update/Delete and at the same…
Most integration estates do not fail because someone picked the wrong queue product. They fail because every project rebuilds the same verbs—file drop, route, transform, deliver—with slightly different code, different secrets handling, and no shared ops…
If you use IIS7 with windows authentication and kerberos, you might want to look into this support article from microsoft. This support article also cover IIS6 http://support.microsoft.com/kb/954873