on calling EncodeString('abc/12345'), declared in unit Soap.EncdDecd, parameter is passed as string

on calling EncodeString('abc/12345'), declared in unit  Soap.EncdDecd, parameter is passed as string

I receive the following error message in Delphi XE 10 Seattle

" no mapping for the unicode character exists in the target multi-byte code page"

any clue please as to what causes this cryptic error?

Comments

  1. Are you sure that this string is actually what it looks like? The error says that it cannot convert the given string to UTF8, which seems a bit weird here. Can you prepare an example program showing that error?

    ReplyDelete
  2. Is your source file encoded as any Unicode or as a classic local code page?

    ReplyDelete
  3. Thanks Uwe Raabe and Jeroen Wiert Pluimers for your valuable clues, on trying to recreate the issue in a fresh sample application, I could find the root cause that was actually with with "DecodeString" called as follows and not as described in my original query

    ShowMessage(DecodeString('https://Consgate/Nova/Init.aspx'));

    Obviously, the above had been failing with the criptic error message, It would need periviously encoded string and not the usual string
    Thanks once again

    ReplyDelete

Post a Comment