Results 1 to 2 of 2

Thread: Submit Webform with VB with Unicodes

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    Submit Webform with VB with Unicodes

    Hi all

    i have a webform that has three fields, I have to submit this form with my VB App. I can submit this form using INET control but the problem is that the data is posted in the webform contain unicodes. Like the textbox have English, Chinese and Japanese characters and when the data is submitted then the form is submitted successfully but the problem is the unicode characters are sent to the server as ????? and i want the Chinese characters to appear in Chinese.

    how i can solve this please?

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2007
    Posts
    912

    Re: Submit Webform with VB with Unicodes

    please someone change this code to Winsock control.
    Code:
    Private Sub Command1_Click()
     
    
     
    Dim strURL As String, strFormData As String
     
    strURL = "http://website.com/post.php"
    'strFormData = "name=MyName&[email protected]&comment=hello&sub=Go"
    strFormData = "name=" & Text1.Text & "&email=" & Text2.Text & "&comment=" & Text3.Text & "&sub=Go"
    Inet1.Execute strURL, "Post", strFormData, _
    "Content-Type: application/x-www-form-urlencoded"
    End Sub

Posting Permissions

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



Click Here to Expand Forum to Full Width