On 7/22/2010 6:25 PM, Joe Turner wrote:

I'm having an issue with NSPropertyListSerialization, where I will
call dataWithPropertyList:format:options:error:, to get the data from a
property list–this part goes fine. However, then I need the data as a
string, so I can upload it to a web service. However, when I call
initWithData:encoding: to get a string (I'm using NSASCIIStringEncoding,
but have tried many others as well), wherever there was a letter with an
accent, weird stuff happens. Like é turns into Ä. I'm fine with losing
accents, but right now, I can't even seem to do that–I just get the Ä's.
Is there any way I can use a different encoding or something else to
keep the accents for the time being, and then filter them out when I
create the post data with dataUsingEncoding:allowLossyConversion:?


Among the "many other" encodings, did you try UTF-8? That's the standard encoding for XML.

--
  James W. Walker, Innoventive Software LLC
  <http://www.frameforge3d.com/>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to