I am creating a new xml file, modifying it and saving it using XMLObj.SaveFile "D:\Automation\Report.xml" ..
But while saving this xml file QTP is saving it by default Encoding type i.e. UTF-8 but I want it to be saved with encoding type ANSI.... (I am checking the encoding type by opening the file in notepad and selecting "save as" option)
How can I change the Encoding type of a file.
Any help will really be appreciated. Thanks in anticipation.
I think you need to do the conversion yourself. And for that FSO won't help you out as it supports ANSI or UNICODE. The better way to do it would be to use DotNetFactory and use .NET Classes for the same