|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Membre du Club
![]() Inscription : mars 2002 Messages : 228 ![]() |
Bonjour, j’accède à un web service .net écrit en c# depuis mon application php, hors je me suis aperçu que lorsque je met des accent ou des caractère non internationaux j'ai une erreur :
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] SOAP-ERROR: Encoding: string 'bléà' is not a valid utf-8 string in mapage.php:5 J’initialise mon web service par : $calendar = new SoapClient(WEB_SERVICE); ou WEB_SERVICE contient l'Uri du contrat WSDL. Y a t'il une solution pour ce problème ? Merci d'avance |
|
|
00
|
|
|
#2 |
|
Membre du Club
![]() Inscription : mars 2002 Messages : 228 ![]() |
j'ai trouvé, la réponse tombait sous le sens
2 solutions s'offrent à moi : 1 - changer l'encoding coté déclaration $calendar= new SoapClient(WEB_SERVICE,array('encoding','iso-8856-1')); 2 - Encoder les chaînes avant l'envoi dans les méthodes par un utf8encoding() |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com