Portal Home > Knowledgebase > Articles Database > ASP and UTF-8
ASP and UTF-8
Posted by vineld, 12-14-2007, 05:58 PM |
I am having trouble creating and writing to a text file in ASP (classic) on an IIS server. I need the text file to be UTF-8 but it will not happen..., any ideas?
|
Posted by holmesa, 12-14-2007, 06:39 PM |
What exactly is the problem? You cannot read it with asp code later. or you cannot read it in some type of text editor?
|
Posted by mwaseem, 12-15-2007, 02:07 AM |
When i was working with my AJAX, the XML files needed to be created with UTF-8 encoding... so, bellow is the code to create a blank file with above character set...
|
Posted by vineld, 12-15-2007, 04:59 AM |
Thanks a lot, I will try that. Earlier on I used this:
set fso = createobject("scripting.filesystemobject")
Set act = fso.CreateTextFile(Server.MapPath(file_being_created), true, true)
act.WriteLine("")
And, well, it spits out the text file correctly although it is never a UTF-8 file which I also need.
|
Add to Favourites Print this Article
Also Read
Wamp VS Xampp (Views: 601)