开发者

Encoding problem in PHP SoapClient and C# SOAP Server responses

开发者 https://www.devze.com 2023-01-09 00:23 出处:网络
I have problems with special characters in soap responses. All connections are made in utf-8 (in xml headers, SoapClient configuration, php source code, database connections, soap server responses) a

I have problems with special characters in soap responses.

All connections are made in utf-8 (in xml headers, SoapClient configuration, php source code, database connections, soap server responses) and I don't understand what is happening.

All special characters are replaced with a sharp "#" character.

For example: Instead of "Sólo alojamiento", the xml response returns "S#lo alojamiento"

I've tested the soap server using Wireshark and it returns utf-8. The "ó" char is encoded in hex as "C3B3". I 开发者_开发技巧don't understand what php is doing.

Do I need some type of conversion. Must I configure something in the SoapClient?

Thank you

0

精彩评论

暂无评论...
验证码 换一张
取 消