Archived Forum Post

Index of archived forum posts


UTF-8 Encoding Support

Jun 28 '16 at 21:33

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


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