• 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: Cant't use UTF-8 source files. False string interpretation.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cant't use UTF-8 source files. False string interpretation.


  • Subject: Re: Cant't use UTF-8 source files. False string interpretation.
  • From: Manfred Lippert <email@hidden>
  • Date: Mon, 16 Feb 2004 15:54:57 +0100

It is possible to enter arabic letters in an NSTextField by using IB's Attributes window but I can't [text1 setStringValue:@"someArabic"];

If you set the encoding of your source files to UTF-8, you can do something like that:

[text1 setStringValue:[NSString stringWithUTF8String:"someArabic"]];

>GCC, the compiler used by Xcode for C, C++, and Objective-C, expects its source files to contain only ASCII characters, with the exception that comments and strings can contain any characters. Make sure your application and your source files both use the same encoding. [......]

This seems to be valid for C-Strings ("...") only, not for Obj-C-Strings (@"...").

Regards,
Mani
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Cant't use UTF-8 source files. False string interpretation. (From: Bernd Carl <email@hidden>)

  • Prev by Date: Problems with NSFont and (NSFont *)fontWithName:(NSString *)fontName size:(float)fontSize
  • Next by Date: Re: Cant't use UTF-8 source files. False string interpretation.
  • Previous by thread: Re: Cant't use UTF-8 source files. False string interpretation.
  • Next by thread: Re: Cant't use UTF-8 source files. False string interpretation.
  • Index(es):
    • Date
    • Thread