Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 encoding. #101

Open
RolandoCartagena opened this issue Apr 21, 2023 · 1 comment
Open

UTF-8 encoding. #101

RolandoCartagena opened this issue Apr 21, 2023 · 1 comment

Comments

@RolandoCartagena
Copy link

RolandoCartagena commented Apr 21, 2023

When I am creating the server and add $server->soap_defencoding = 'UTF-8';

The XML is always generated with encoding="ISO-8859-1".

Inside the nusoap class the change was made:
//var $soap_defencoding = 'ISO-8859-1';
var $soap_defencoding = 'UTF-8';

The XML is always generated with encoding="ISO-8859-1".

In line 5643 it was found $xml = '<?xml version="1.0" encoding="ISO-8859-1"?>';

was replaced by $xml = '<?xml version="1.0" encoding="' . $this->soap_defencoding . '"?>';

The XML is already generated correctly

<?xml version="1.0" encoding="UTF-8"?>

@haeussler-pharma4u
Copy link

I created a pull request that fixes this issue, without changing the default soap_defencoding: #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants