String encoding problem (WSMethodInvocation)
String encoding problem (WSMethodInvocation)
- Subject: String encoding problem (WSMethodInvocation)
- From: Nick Toumpelis <email@hidden>
- Date: Thu, 24 Jan 2008 16:02:32 +0200
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:email@hidden :: AIM:email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden