• 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: newbie unicode problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie unicode problem


  • Subject: Re: newbie unicode problem
  • From: Michael Hanna <email@hidden>
  • Date: Mon, 31 Jan 2005 04:32:21 -0500

The Yafca source may help you...

http://yafca.sourceforge.net/


Michael


On 31-Jan-05, at 4:09 AM, Daniel Child wrote:

Hi All.

I am trying to do a simple app that involves Chinese and bopomofo characters. The app works except for one aspect: I can't seem to get Unicode characters to print correctly to the NSTextFields in the window. I have an entry field and a result field. There are two problems:

- if I type in a character (of any type) into an entry field, it does not seem to be correctly recognized
- if I print a character to the textfield (using setStringValue) it is also not typed correctly to the result field


I have tried UTF-8 as the encoding for source files, but that didn't work. (Naturally I set appropriate fonts for the textfields in the IB window.) Actually, UTF16 seems like a more logical choice, but for some reason, if I set source files to UTF16, I get a string of warnings and errors about invalid characters when I build and run.

If someone could fill me on the basic steps (differences) for working with Asian characters, I'd really appreciate it.

Thanks,

Daniel

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >newbie unicode problem (From: Daniel Child <email@hidden>)

  • Prev by Date: Custom NSView positioning inside a scrollview
  • Next by Date: Re: newbie unicode problem
  • Previous by thread: newbie unicode problem
  • Next by thread: Re: newbie unicode problem
  • Index(es):
    • Date
    • Thread