String encoding problem (WSMethodInvocation)

Nick Toumpelis nicktoumpelis at gmail.com
Thu Jan 24 05:21:06 PST 2008


Hi all,

I'm stuck with a curious string encoding problem.

I start with a string in Greek, which is stored using Core Data (an  
entity with a String property). Later in the execution, I get this  
string, add it to an NSMutableDictionary which is sent as a callParams  
argument in WSMethodInvocationSetParameters - as part of a method  
invocation sent to an XML-RPC web service.

As far as I can tell, nothing changes in the string encoding prior to  
the method invocation. When I print out the string with NSLog, the  
result is in Greek. Using the print-object command in gdb, I get this:  
"\U039b\U03b1\U03bb\U03b1".

Remotely, the string is not stored properly. The stored value is ????  
and that's what I get, when I ask the web service for the same string.  
However, using another Mac application, the web service gets the  
string properly.

I assume that the method invocation dispatches something that is not a  
properly formatted UTF-8 string. I might be wrong.

Have you ever encountered this? I am doing something wrong?

I appreciate any help you can give me.

Thanks,

Nick



Nick Toumpelis :: Software Developer :: BEng (Wales), MSc (Manchester)
Thessaloniki, Greece :: email:nick at toumpelis.me.uk :: AIM:nick at toumpelis.me.uk







More information about the MacOSX-dev mailing list