I have an NSTableView that needs to display fractions using the Unicode single-character fractions such as "⅓" (instead of "1/3"). This appears to work correctly when the value is entered by the user. However, if I attempt to programatically automate the conversion of "1/3" to "⅓", I just get some other strange symbol displayed in the table instead.
This occurs in other situations as well, not just NSTableView.
How do I get it to use the character I want? I guess that somewhere I need to specify some encoding, but I'm unsure where. The source code file is encoded in Unicode (UTF-8), and that's where the program gets the character from.
The table (cell) appears to handle unicode fine when entered manually by a user.
How do I get it to work programatically?