Ask a Question related to ASP Components, Design and Development.
-
jenschindler@gmail.com #1
ASPHTTP Multilingual Support
Hello,
I was wondering if anyone would happen to know how I can get ASPHTTP to
post data in the UTF-8 character set?
I have sent an email to technical support at Server Objects, but
haven't received a response from them about this.
Any help you can provide would be greatly appreciated!
Thanks!
jenschindler@gmail.com Guest
-
register asphttp.dll and aspimage.dll ????
Greetings, We face the same problem. We have purchased (inventory, brand and custumers) a bankrupt ISP. On their servers they have a registered... -
Multilingual Solution
One of our customer's sites is about to go down the path of offering up 5-6 additional languages for all content. We have a DB solution for the... -
Multilingual forms...
I am using Acrobat 5 on Windows XP and I am having the same problem. Did anyone get it to really work on Acrobat 6? -
AspHTTP.DLL and Windows 2003 Server???
We're using AspHTTP.DLL from Server Objects on our Windows 2000 boxes used for e-learnng courses and AICC communication. Our corporate IT group... -
ASPHTTP Doesn't Follow Redirects
How can I get ASPHTTP to follow Redirects? I set the followRedirects property to TRUE, but whenever there is a redirection, the results string... -
Egbert Nierop \(MVP for IIS\) #2
Re: ASPHTTP Multilingual Support
<jenschindler@gmail.com> wrote in message
news:1130417588.828846.75940@g43g2000cwa.googlegro ups.com...They are more or less, inactive, as you can see, the copyright date, has> Hello,
>
> I was wondering if anyone would happen to know how I can get ASPHTTP to
> post data in the UTF-8 character set?
>
> I have sent an email to technical support at Server Objects, but
> haven't received a response from them about this.
gone up to 2003 but no further.
The same might be to support.
The ServerXMLHTTP object, can do the same for you and you can specify
charsets.
(vbscript syntax)
Set pXMLHTTPReq = CreateObject("MSXML2.ServerXMLHTTP.4.0")
pXMLHTTPReq.setRequestHeader "charset", "UTF-8"
pXMLHTTPReq.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
pXMLHTTPReq.send [yourbodyUNICODE2string]
> Any help you can provide would be greatly appreciated!
>
> Thanks!
>Egbert Nierop \(MVP for IIS\) Guest
-
jenschindler@gmail.com #3
Re: ASPHTTP Multilingual Support
Thanks for your reply!
I tried ServerXMLHTTP (using your example code), but the form doesn't
post.
Here is my code:
set HTTPObj = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
HTTPObj.Open "POST", "myURL", False
HTTPObj.setRequestHeader "charset", "UTF-8"
HTTPObj.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
HTTPObj.Send strQuery
set HTTPObj = nothing
Got any ideas?
TIA!
jenschindler@gmail.com Guest
-
Egbert Nierop \(MVP for IIS\) #4
Re: ASPHTTP Multilingual Support
<jenschindler@gmail.com> wrote in message
news:1130856153.983416.272490@g49g2000cwa.googlegr oups.com...> Thanks for your reply!
ps: To -read- this post well, your NNTP reader, needs to support UTF-8 if it
does not, it might be a *unix or linux ASCII reader, which sucks :)
It really works...> I tried ServerXMLHTTP (using your example code), but the form doesn't
> post.
>
> Here is my code:
>
> set HTTPObj = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
> HTTPObj.Open "POST", "myURL", False
> HTTPObj.setRequestHeader "charset", "UTF-8"
> HTTPObj.setRequestHeader "Content-Type",
> "application/x-www-form-urlencoded"
> HTTPObj.Send strQuery
> set HTTPObj = nothing
>
> Got any ideas?
name your page 'fetch.asp'
'code page=utf-8
' safe these pages as utf-8 in notepad for instance!
<% @codepage=65001 %>
<%
Dim log, myfile
Set Log = CreateObject("Scripting.FileSystemObject")
Set myfile = log.OpenTextFile("c:\\temp\\somelog.txt", 8, True,-1)
myfile.WriteLine(Request.Form("var1"))
myfile.WriteLine(Request.QueryString("page"))
myfile.Close
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>test</title></head>
<body>
<p>Success</p>
</body>
</html>
name this as postit.asp (ps: Server.CreateObject is legacy stuff with some
overhead, just use CreateObject)
<% @codepage=65001 %>
<%
set HTTPObj = CreateObject("Msxml2.ServerXMLHTTP.4.0")
HTTPObj.Open "POST", "http://localhost/fetch.asp?page=welcome", False
HTTPObj.setRequestHeader "charset", "UTF-8"
HTTPObj.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
HTTPObj.Send "var1=" + Server.UrlEncode("345+_23498234LDSF@@#1!@#$%^&()Ð* как
дела?")
%>
Result
c:\temp\somelog.txt is unicode, completely and reads exactly the value as
posted in var1...
Be my guest...> TIA!
--
compatible web farm Session replacement for Asp and Asp.Net
[url]http://www.nieropwebconsult.nl/asp_session_manager.htm[/url]
Egbert Nierop \(MVP for IIS\) Guest



Reply With Quote

