Posts

Post not yet marked as solved
1 Replies
530 Views
I have a problem with non-breaking space in new xcstrings. For example, I have a such code let text = "Hello\u{00a0}world!" let label = UILabel() label.text = text And this code outputs nice string "Hello world!" with non-breaking space. But if I try to put this string in Localizable.xcstring by key test_key, and then use this string, it won't work let text = String(localized: "test_key") let label = UILabel() label.text = text This code will show me Hello\u{00a0}world!. This is because swift adding additional \ symbol before \u{00a0} under hood. And of course \\u{00a0} will be displayed as \u{00a0}. Is there a way to use non-breaking space in new .xcstrings?
Posted
by OBielov.
Last updated
.