String from dylib

  1. last week

    Simon B

    Jun 13 Europe (Wiltshire, UK)

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

    "Simon."

    and what I am getting is

    "S*i*m*o*n*.*"
    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

    Jun 13 San Francisco, CA, USA

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

  3. Thomas E

    Jun 13 Pre-Release Testers

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

or Sign Up to reply!