• 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
does NSTextField always use UTF8 encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

does NSTextField always use UTF8 encoding


  • Subject: does NSTextField always use UTF8 encoding
  • From: "Wayne Shao" <email@hidden>
  • Date: Tue, 17 Jun 2008 23:16:19 -0700

Hi,

In my UI, a user may type in any string into a NSTextField, e.g.
Chinese characters.

Do I assume the return value from

NSString * value = [textField stringValue]

is always encoded with UTF8?

I need to convert this to a properly url encoded value as a GET parameter.

Thanks,
--
Wayne Shao
_______________________________________________

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: does NSTextField always use UTF8 encoding
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: capture modifier key events
  • Next by Date: Re: does NSTextField always use UTF8 encoding
  • Previous by thread: Re: capture modifier key events
  • Next by thread: Re: does NSTextField always use UTF8 encoding
  • Index(es):
    • Date
    • Thread