ASPHTTP Multilingual Support

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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?
    4. 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...
    5. 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...
  3. #2

    Default Re: ASPHTTP Multilingual Support


    <jenschindler@gmail.com> wrote in message
    news:1130417588.828846.75940@g43g2000cwa.googlegro ups.com...
    > 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.
    They are more or less, inactive, as you can see, the copyright date, has
    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

  4. #3

    Default 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

  5. #4

    Default 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 :)
    > 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?
    It really works...
    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...

    > TIA!
    Be my guest...

    --
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139