• 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
Re: NSTask and unicode arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and unicode arguments


  • Subject: Re: NSTask and unicode arguments
  • From: Aki Inoue <email@hidden>
  • Date: Sat, 5 Nov 2005 19:21:42 -0800

Stefan,

You can use Unicode::Normalize to precompose before sending to the website.

Aki

Dear Cocoa-dev,

I've got a perl script that mines some data of web pages and prints its result to stdout. This script in turn is called from an application, using NSTask. My problem is that when i give it argument string with unicode characters in them they get decomposed, so that ö becomes ö etc. The web pages in question don't support decomposed characters, so ö has to become % c3¶. Right now i can't figure out how to work around this, and any creative suggestions would be appreciated. The real culprit is - [NSString fileSystemRepresentation], which NSTask uses when passing its arguments to the script.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSTask and unicode arguments
      • From: Stefan Fisk <email@hidden>
References: 
 >NSTask and unicode arguments (From: Stefan Fisk <email@hidden>)

  • Prev by Date: Re: Core Data Predicates with Relationships and Objects
  • Next by Date: Silly question. Is iTunes Cocoa application?
  • Previous by thread: NSTask and unicode arguments
  • Next by thread: Re: NSTask and unicode arguments
  • Index(es):
    • Date
    • Thread