• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
String encoding problem (WSMethodInvocation)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: String encoding problem (WSMethodInvocation)
      • From: Jeremy Pereira <email@hidden>
  • Prev by Date: Re: Core Data & ManagedObjectContext
  • Next by Date: Thanks for your help!
  • Previous by thread: NSCollectionView and NSArrayController
  • Next by thread: Re: String encoding problem (WSMethodInvocation)
  • Index(es):
    • Date
    • Thread