From 9347453d664de0d7e0c08dbfd05e03e3c93441ce Mon Sep 17 00:00:00 2001 From: Kiryl Kaveryn Date: Mon, 23 Dec 2024 11:56:44 +0400 Subject: [PATCH] [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 --- iphone/Maps/UI/Editor/MWMObjectsCategorySelectorController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/UI/Editor/MWMObjectsCategorySelectorController.mm b/iphone/Maps/UI/Editor/MWMObjectsCategorySelectorController.mm index ff6364b463..91e42b9c93 100644 --- a/iphone/Maps/UI/Editor/MWMObjectsCategorySelectorController.mm +++ b/iphone/Maps/UI/Editor/MWMObjectsCategorySelectorController.mm @@ -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;