Re: String encoding problem (WSMethodInvocation)
Re: String encoding problem (WSMethodInvocation)
- Subject: Re: String encoding problem (WSMethodInvocation)
- From: Jeremy Pereira <email@hidden>
- Date: Thu, 24 Jan 2008 16:37:42 +0000
On 24 Jan 2008, at 14:02, Nick Toumpelis wrote:
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.
Maybe the string is being encoded as UTF-16 and you have an endian
problem. Is your Mac PPC and your web service on an Intel machine, or
vice versa?
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
_______________________________________________
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