Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resend newbie on Chinese/unicode



I am resending this because my mailbox was full and it may have not gone through the first time. If anyone responded, I'm sorry I was not able to receive your response, but the problem has been fixed. Thanks.

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.