String from dylib

  1. 7 months ago

    Simon B

    13 Jun 2018 Europe (Wiltshire, UK)

    I am getting a String returned from a dylib. The String value that I am expecting from the dylib is


    and what I am getting is

    Where each asterisk is Chr(0)

    How do I convert this String variable so that it shows the string without the 00 bytes?

  2. Andrew L

    13 Jun 2018 San Francisco, CA, USA

    The string is using a multi-byte encoding. Try DefineEncoding("S*i*m*o*n*.*", Encodings.UTF8).

  3. Thomas E

    13 Jun 2018 Pre-Release Testers

    This is no UTF8 encoding. Better try UTF16BE or UTF16LE and use convertEncoding to UTF8.

or Sign Up to reply!