Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > PUT data into a UNICODE file

Reply
Thread Tools

PUT data into a UNICODE file

 
 
raj.sinha@gmail.com
Guest
Posts: n/a
 
      04-24-2006
I have to "PUT" data to a Unicode file... a file that has the "FF FE"
mark at the beginning of the file.

How do i do that. What HTTP header do i need to send so that the data
is stored in the Unicode file. Right now when i "PUT" the data it sores

it in a regular file.


Test code below


Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")


' Opens the connection to the remote server.
xml.Open "PUT", "http://135.8.63.61/outlook/save.txt", False


' Try these headers
'xml.setRequestHeader "Charset", "UTF-16"
'xml.setRequestHeader "Charset", "text/html; charset=UTF-16"


' Actually Sends the request and returns the data:
xml.Send "hello"


If xml.Status >= 400 And xml.Status <= 599 Then
Response.Write "Error Occurred : " & xml.Status & " - " &
xml.statusText
Else
Response.Write xml.ResponseText
End If


Set xml = nothing

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert unicode escape sequences to unicode in a file Jeremy Python 1 01-11-2011 10:36 PM
Put ASP .NET Web Form Data Into a .PDF file Rigs ASP .Net 2 08-25-2006 01:57 AM
How to put traditional Chinese text into Unicode Oracle 9i database via Internet Explorer bjwang@acs.com.tw Java 1 12-24-2004 10:13 PM
How can you put text from a file into a textarea box, when the file is selected from a Select list! Shaiboy_UK ASP General 11 12-22-2004 07:46 AM
Convert UTF-8 encoded data from file into unicode escape Fritz Bayer Java 5 10-25-2004 06:07 AM



Advertisments