Using Disposable object
First method is to use the “Using” keyword which is quite clean and simple using (IDisposable obj = new DataTable()) { //do your logic with obj variable } Second method is to use Try and finally…
First method is to use the “Using” keyword which is quite clean and simple using (IDisposable obj = new DataTable()) { //do your logic with obj variable } Second method is to use Try and finally…
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…
Simple function to encode and decode UTF8 character for unicode (this is for IE) Encode utf8bytes= unescape(encodeURIComponent(unicodecharacters)); Decode unicodecharacters= decodeURIComponent(escape(utf8bytes));