Closed Sebruck closed 10 years ago
If you have characters like "äöüß" in your text it would calculate the length wrong. Use [NSString lengthOfBytesUsingEncoding:NSUTF8StringEncoding], it does everything you need.
+1
Thanks!
awesome, thank you!
If you have characters like "äöüß" in your text it would calculate the length wrong. Use [NSString lengthOfBytesUsingEncoding:NSUTF8StringEncoding], it does everything you need.