Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2011, 03:52 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 2
nettles is on a distinguished road
Default High-codepoint Unicode characters?

I have had no trouble entering CJK characters into strings. For instance, to add the characters 姓名 ('surname and given name'), it is possible either to use simply
Code:
<string key="IBUIText">姓名</string>
or
Code:
<string key="IBUIText">&#x59d3;&#x540d;</string>
, and the characters display correctly in both Xcode 4 and the iOS Simulator. The same is true if I insert the characters directly into a label field in the GUI.

My problem comes when I try to use high-codepoint characters. In the example above, both characters have codepoints in the 5xxx range. If, however, I try to use a much rarer graph, such as (to pick one at random) , 𡀗
Code:
&#x21017;
, although it displays correctly in Xcode 4 when I view source code, it does not appear correctly when I view the nib in the normal GUI, nor in the iOS Simulator. Changing the font to one (on my system) in which the character appears does not seem to help the matter.

Can anyone suggest a way to get high-codepoint characters to appear, as well as low-codepoint ones? Is it a matter of installing a more complete font, or are there special encoding instructions that I need to use? Or is it not currently possible in iOS?

Thanks for your patience.
nettles is offline   Reply With Quote
Old 07-20-2011, 07:02 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 136
Allah is on a distinguished road
Default

Quote:
Originally Posted by nettles View Post
...

Can anyone suggest a way to get high-codepoint characters to appear, as well as low-codepoint ones? Is it a matter of installing a more complete font, or are there special encoding instructions that I need to use? Or is it not currently possible in iOS?

Thanks for your patience.
Can we take this to mean you know a way to show only one or the other?
Allah is offline   Reply With Quote
Reply

Bookmarks

Tags
cjk, encoding, fonts, unicode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 412
12 members and 400 guests
AppleDev, chemistry, Emy, Gi-lo, ipodphone, mistergreen2011, pipposanta, QuantumDoja, Retouchable, RobTaku, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,924
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:29 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0