iOS - Unicode numeric value of individual characters in a string
问题 For Objective-C in iOS: If I have a string how could I read the unicode numeric value of an individual character? For example if my string was: "∆" That unicode character is U+0394, so how could I read the string, figure out the "0394" then create a new string with say 100 added to that value, so the new string would be the character U+0494 or "ҕ" Thanks! 回答1: First, there is a fallacy in your logic. ∆ + 100 != ҕ . Unicode is evaluated in base-16 (hex), so '∆' is actually equal to 916 in