• 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: Somewhat OT - Creating a Project Template from Working Project With Shell Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script


  • Subject: Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script
  • From: Rush Manbert <email@hidden>
  • Date: Thu, 15 Jun 2006 10:39:56 -0700

Tommy Nordgren wrote:

Found the answer. Perl is the way to go. The pack() function is your friend for inserting those pesky UTF-8 codes.

- Rush
_______________________________________________

You don't have to use pack for that. Just put the line
use utf8;
early in your perl script, and write the entire script using the utf8 encoding

That's what I thought would work, but I tried it (being very careful that the replacement string had the correct encoding) and it didn't work. (Perl complained about bad UTF-8 characters). I also worried that, even if I did get it working, someone could come along and edit the script with an editor that wasn't set to support the encoding, and things would get messed up. The pack function was my second attempt, and it avoids the second problem.


My real question is "Why didn't they just use some ASCII character sequence, instead of the funky characters?", but I digress. :-)

- Rush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script
      • From: Tommy Nordgren <email@hidden>
References: 
 >Somewhat OT - Creating a Project Template from Working Project With Shell Script (From: Rush Manbert <email@hidden>)
 >Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script (From: Rush Manbert <email@hidden>)
 >Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script (From: Tommy Nordgren <email@hidden>)

  • Prev by Date: Re: Code Completion & Nested Obj-C Messages: Wrong Scope
  • Next by Date: Re: Debugging problem with XCode 2.3
  • Previous by thread: Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script
  • Next by thread: Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script
  • Index(es):
    • Date
    • Thread