Classic ASP convert string to windows-1252

lexyjonas

New Member
I am processing a POST request which is encoded in UTF-8. This POST request is responsible for creating a file in some folder. However, when I look at the file names for Russian characters, I see garbage values for the file name ( file contents are ok). English characters for file names are ok. In the script I see :\[code\]Set fsOBJ= Server.CreateObject("Scripting.FileSystemObject")Set fsOBJ= fsObj.CreateTextFile(fsOBJ.BuildPath(Path, strFileName))\[/code\]I believe that 'strFileName' is my problem. Windows doesn't seem to like UTF-8 filenames. Any ideas on how to solve this.
 
Back
Top