Month: June 2012

convert ANSI to UTF-8 using JavaScript

var adTypeBinary = 1; var adTypeText = 2; var bOverwrite = true; var bAsASCII = false; var oFS = new ActiveXObject(“Scripting.FileSystemObject”); var sFiNa = “OPM_Mitarbeiter.csv”; var sFrom = “Windows-1252”; var sFFSpec = oFS.GetAbsolutePathName( sFiNa); var oTo = new ActiveXObject( “ADODB.Stream” ); var sTo = “utf-8”; var sTFSpec = oFS.GetAbsolutePathName( sFiNa + “-utf8.txt” ); WScript.Echo(“File name:”+sTFSpec); …

convert ANSI to UTF-8 using JavaScript Read More »

Martin Rocks