See https://stackoverflow.com/questions/720052/nslog-incorrect-encoding. The `%s` format placeholder for `NSLog()` expects an encoding other than UTF-8, which leads to garbled Unicode characters when trying to print a UTF-8 encoded string. ```Objective-C NSLog(@"Ä %s %@", "Ä", @("Ä")); ``` prints `Ä √Ñ Ä`. As can be seen in the example above, the workaround is to convert the UTF-8 encoded C-string to an `NSString` object and print that instead. `debug_key()` calls `NSLog()`.
= kitty - the fast, featureful, GPU based, terminal emulator See https://sw.kovidgoyal.net/kitty image:https://circleci.com/gh/kovidgoyal/kitty.svg?style=svg["Build status", link="https://circleci.com/gh/kovidgoyal/kitty"]
Languages
Python
43.6%
C
28.3%
Go
20%
Objective-C
6%
Shell
1.5%
Other
0.5%