I am using VB 6.0. I am creating and writing text into a text file using FilesystemObject. But the file gets saved in ANSI format whereas I want to save it in UTF-8 format. Is there a way to do it in VB 6.0?

You need to specify Unicode object.CreateTextFile(filename[, overwrite[, unicode]]) Set the unicode parameter = True Set MyFile = fso.CreateTextFile("c:\testfile.txt", True, [U]True[/U])

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.