login about faq

Does the ActiveX socket support UTF-8 encoding? If so, can it be set?

asked Jun 28 '16 at 20:22

RBO's gravatar image


Check out the documentation for the StringCharset property - I think it will allow you to accomplish what you require by setting it to "utf-8" (though I don't know for certain as I haven't used it myself):

StringCharset As String

A charset such as "utf-8", "windows-1252", "Shift_JIS", "iso-8859-1", etc. Methods for sending and receiving strings will use this charset as the encoding. Strings sent on the socket are first converted (if necessary) to this encoding. When reading, it is assumed that the bytes received are converted FROM this charset if necessary. This ONLY APPLIES TO THE SendString and ReceiveString methods. The default value is "ansi".


answered Jun 28 '16 at 21:33

jpbro's gravatar image

jpbro ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 28 '16 at 20:22

Seen: 1,895 times

Last updated: Jun 28 '16 at 21:33

powered by OSQA