ConvertedString = System::Web::HttpUtility::HtmlEncode(SomeString);
ConvertedString = System::Web::HttpUtility::UrlEncode(SomeString);
If its not available select project proiperties > Framework & References > add a reference to System.Web
HtmlEncode – HTML encoding makes sure that text is displayed correctly in the browser and not interpreted by the browser as HTML.
UrlEncode – Encodes a URL string. These method overloads can be used to encode the entire URL, including query-string values.
Making Strings Filename Safe
for each (wchar_t c in IO::Path::GetInvalidFileNameChars())
sTemp = sTemp->Replace(Convert::ToString(c), "");
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.