FROM : Evan Schoenberg
DATE : Wed Dec 22 20:09:46 2004
Haven't tried it, but I think this would work:
[theNSTextField setStringValue:[NSString stringWithUTF8String:"σxx"]];
@"blah" is actually an ASCII string literal IIRC so doesn't support
full UTF8. (Someone feel free to correct me if I'm wrong!)
-Evan
On Dec 22, 2004, at 6:17 AM, Nestor Cardozo wrote:
> I am trying to write programatically a combination of greek and latin
> characters to an NSTextField:
>
> [theNSTextField setStringValue:@"σxx"]
>
> it looks okay in Xcode. However, when I run the program the character
> that actually shows up is:
>
> æĚxx
>
> the greek letter sigma σ has been replaced for æĚ
>
> How to write greek characters to an NSTextField?
>
> Nestor Cardozo
>
> Nestor Cardozo
> phone: work: 47 5558 3693
> personal: 47 9262 5637
> email: work: nestor.<email_removed>
> personal: <email_removed>
> web page: homepage.mac.com/nfcd
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/evan.<email_removed>
>
> This email sent to evan.<email_removed>
DATE : Wed Dec 22 20:09:46 2004
Haven't tried it, but I think this would work:
[theNSTextField setStringValue:[NSString stringWithUTF8String:"σxx"]];
@"blah" is actually an ASCII string literal IIRC so doesn't support
full UTF8. (Someone feel free to correct me if I'm wrong!)
-Evan
On Dec 22, 2004, at 6:17 AM, Nestor Cardozo wrote:
> I am trying to write programatically a combination of greek and latin
> characters to an NSTextField:
>
> [theNSTextField setStringValue:@"σxx"]
>
> it looks okay in Xcode. However, when I run the program the character
> that actually shows up is:
>
> æĚxx
>
> the greek letter sigma σ has been replaced for æĚ
>
> How to write greek characters to an NSTextField?
>
> Nestor Cardozo
>
> Nestor Cardozo
> phone: work: 47 5558 3693
> personal: 47 9262 5637
> email: work: nestor.<email_removed>
> personal: <email_removed>
> web page: homepage.mac.com/nfcd
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/evan.<email_removed>
>
> This email sent to evan.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Nestor Cardozo | Dec 22, 13:17 | |
| Brian Bergstrand | Dec 22, 15:12 | |
| Evan Schoenberg | Dec 22, 20:09 | |
| Clark Cox | Dec 22, 21:17 | |
| The Karl Adam | Dec 22, 23:31 | |
| Clark Cox | Dec 22, 23:46 | |
| The Karl Adam | Dec 23, 07:08 | |
| Clark Cox | Dec 24, 00:25 |






Cocoa mail archive

