• 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: Unable to write in InfoPlist.strings file from cpp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to write in InfoPlist.strings file from cpp


  • Subject: Re: Unable to write in InfoPlist.strings file from cpp
  • From: Parimal Das <email@hidden>
  • Date: Wed, 9 Dec 2009 10:41:41 +0530

Thanks a lot Greg.
Interpret as UTF8 solved the problem.

-Parimal Das

On Tue, Dec 8, 2009 at 8:18 PM, Greg Parker <email@hidden> wrote:

> On Dec 8, 2009, at 5:25 AM, Parimal Das wrote:
> > I am trying to write "CFBundleGetInfoString" into "InfoPlist.strings"
> from
> > cpp code and It is writing successfully.
> > But when i use the InfoPlist.strings in xcode, it gives me a build error
> > /usr/bin/iconv: English.lproj/InfoPlist.strings:1:82: incomplete
> character
> > or shift sequence
> >
> > Now if i open the .strings file in dashcode (or any other text editor),
> it
> > shows me the required text correctly, but when i open the same in xcode -
> it
> > show something similar to chinese/japanese script.
> >
> > Dashcode shows: CFBundleGetInfoString = "bla bla bla";
> > Xcode shows: 屲屮䍆䉵湤汥䝥瑉湦潓瑲楮朠㴠≍慩求牯睳敲′⸳⁐䕎呁Ⱐ䍯
>
> Xcode is probably reading InfoPlist.strings with the wrong text encoding.
> Most likely, your code wrote UTF-8 that Xcode is reading as UTF-16.
>
> Open your project in Xcode, Get Info on each InfoPlist.strings file, and
> set General > File Encoding to the encoding your code writes. When Xcode
> asks what to do with the existing file, choose Reinterpret.
>
>
> --
> Greg Parker     email@hidden     Runtime Wrangler
>
>
>


--
--
Warm Regards,

Parimal Das
Webyog Softworks
_______________________________________________

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: Unable to write in InfoPlist.strings file from cpp
      • From: Uli Kusterer <email@hidden>
References: 
 >Unable to write in InfoPlist.strings file from cpp (From: Parimal Das <email@hidden>)
 >Re: Unable to write in InfoPlist.strings file from cpp (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: Mac OS 10.5 can't find xib-instantiated subclass methods
  • Next by Date: Cocoaheads Lake Forest (92630) meeting Wed 12/9/2009 at 7 pm on Detecting Memory Leaks with Instruments
  • Previous by thread: Re: Unable to write in InfoPlist.strings file from cpp
  • Next by thread: Re: Unable to write in InfoPlist.strings file from cpp
  • Index(es):
    • Date
    • Thread