bluem-development/bluem-php

IBAN-Name check Error: Request is not formed correctly

Closed this issue · 1 comments

We are implementing the IBAN-Name check feature with this package in a Laravel application.

When there is a special character in de name we get an error reponse. The errror is:

Error: Request is not formed correctly. More details: Error 26 in  (Line: 12):Entity 'eacute' not defined;

The name we use in Hénk de Vries.

If we have a look in de IBANBluemRequest the iban and name are sanitized and converted to html entities:

htmlentities( $name )

If we remove the htmlentities the request is formed correctly.

Only problem with the response now is dat the AssumedName is Hénk de Vries. Its looks like something is wrong with the utf-8 encode or decoding. In the PerformRequest function you can see that the request values get utf8_encode, but the response never gets decoded.

Example repo to reproduce problem: https://github.com/jhhazelaar/laravel-bluem-htmlentities-encoding

Thanks for your request. I have accepted and merged your PR.