Skip to content

Return parameters are double utf-encoded #211

Description

@f-p-r

Just doing first steps with IbmiToolkit, i modified call-procedure.php script in samples for testing. It works, but character parameters (ie $params[] = $conn->AddParameterChar('both', 20,'Parm', 'PARM', ''); ) are returned with 'double utf-8 encoding'. That is, i had to perform mb_convert_encoding($result['io_param']['PARM'], 'ISO-8859-1', 'UTF-8') to get the right parameter value in utf-8. I verified that the script is utf-8 encoded, with some special chars hardcoded that show ok in the html result page, which even has defined charset="UTF-8" as meta to make sure it displays content in utf-8 encoding.

Maybe it's a config issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions