forked from organicmaps/organicmaps
[ios] fix encoding for the empty category selection
text view
NSUTF8StringEncoding works incorrectly with html data type in the UITextView Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
parent
0873f97754
commit
9347453d66
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ NSString * const kToEditorSegue = @"CategorySelectorToEditorSegue";
|
|||
subtitleTextView.textContainerInset = UIEdgeInsetsZero;
|
||||
|
||||
NSString *subtitleHTML = L(@"editor_category_unsuitable_text");
|
||||
NSData *htmlData = [subtitleHTML dataUsingEncoding:NSUTF8StringEncoding];
|
||||
NSData *htmlData = [subtitleHTML dataUsingEncoding:NSUnicodeStringEncoding];
|
||||
NSDictionary *options = @{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType};
|
||||
NSError *error = nil;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue