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), "");




We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.


Your email address will not be published.