473,473 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PEAR::SOAP encoding issue

Hi all

I'm having some trouble with UTF8 / ISO-8859-1 encoding using a Webservice
based on PEAR::SOAP_Server. The client essentially sends an XML file as data
(i.e. XML-data wrapped in SOAP-XML envelope) to the server where it is
processed.

I've made sure the client sends data in ISO-8859-1, the XML data also has
this encoding set in the PI. However, the server seems to receive the data
as UTF8. Therefore, my german "umlaute" get all mangled up. Funny enough, it
seems if I run the client on an English Windows, the SOAP server gets UTF8,
if I run the same client (which sets the SOAP client encoding to ISO-8859-1
programmatically) on a German Windows, the encoding is ISO-8859-1 (statement
based on what mb_detect_encoding tells me).

Can someone enlighten me as to where encoding is important and I will have
to look into and where does it not matter.
- how do I force SOAP_Server to excpect ISO-8859-1 as request encoding?
$server->xml_encoding = 'ISO-8859-1'; ???
$server->response_encoding = 'ISO-8859-1'; ???
- are PHP internal strings always Unicode?
- how does domxml_open_mem work with encoding?

Thanks a lot
Simon
Feb 13 '06 #1
0 1276

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Arne Kösling | last post by:
Hi ! I am new to Web Services. Therefore I ve set up a PHP Installation on Windows (PHP 4.3.2 and Apache 1.3.29). I have tested PHP alone and then installed PEAR. Now I am stuck there (Before...
0
by: Jimmy Jim | last post by:
OK, I am so frustrated with PEAR SOAP, I have it working, but it seems when I include a file and in that file is a function with global variables, those globals are not set. Anyone have ANY...
0
by: Arne Kösling | last post by:
Hi, PEAR:SOAP is not working. I've tried so many examples now and the only one that works, is that amazon example, which is too complex for me to understand. I am so reliant on the Web...
0
by: Doug Farrell | last post by:
Hi all, I'm trying to make use of PEAR::SOAP am and having problems. I've tried a number examples I've found on the web, but to no avail. I've set things up so I have to separate servers on my...
0
by: Henrik Brautaset Aronsen | last post by:
I am having problems converting from Pear SOAP to PHP5 SOAP, especially when it comes to complex types. I would be grateful for any help on how this should be translated: ...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
0
by: Alexander Waldmann | last post by:
Hi, i have PEAR::SOAP installed correctly (beta, all dependent packages are installed). When i try out the following simple Script <?php print "Include is ... ";...
0
by: Samuel Zallocco | last post by:
Hi all, I've a problem with PHP5 + PEAR::SOAP. I Have the following 2 script that implements a simple web service: The Server Code running on WinXP + PHP5 + Apache 2.x:...
0
by: wagemage.pt | last post by:
I'm having some trouble with PEAR soap and a response from a webservice when the number of results is one or more than one. Versions are PHP 4.4.2-1build1, PEAR-1.4.6, SOAP-0.9.4 running in...
0
by: info | last post by:
Dear all, is the first time that I use SOAP, and i must say that i'm having several problems. this is SOAP message that expects the server =================XML EXPECTED FROM THE...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.