• 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: Merging strings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Merging strings?


  • Subject: Re: Merging strings?
  • From: Paul Walmsley <email@hidden>
  • Date: Fri, 02 Sep 2005 15:08:56 +0100


Please note how the BOM (feff) moved to the end of the file :)


I was actually quite surprised that it was possible to get that far in the shell with UTF16 files as most of the shell tools are not Unicode/wide char aware. For instance try running 'less file.strings' and see the mess that results! I think the solution may be to convert to an 8-bit representation, do the catenation and sorting, then convert back to UTF16.

A really useful tool at this point is the GNU 'recode' program - http://recode.progiciels-bpi.ca/manual/index.html . Have a look at the tutorial page for some examples of how to use it -- it's a very powerful utility for converting between different encodings. It'll also deal with CR/LF issues as well (which is rather handy since the BSD command line tools don't like mac line endings either!)
_______________________________________________
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: Merging strings?
      • From: Alexey Proskuryakov <email@hidden>
References: 
 >Re: Merging strings? (From: Alexey Proskuryakov <email@hidden>)

  • Prev by Date: Re: Opaque types are nice concepts but how do you debug that?
  • Next by Date: Re: Merging strings?
  • Previous by thread: Re: Merging strings?
  • Next by thread: Re: Merging strings?
  • Index(es):
    • Date
    • Thread