forked from organicmaps/organicmaps
[search] Fix UTF-8 text corruption in suggestion string.
This commit is contained in:
parent
00362044d5
commit
f793671027
1 changed files with 2 additions and 1 deletions
|
@ -381,7 +381,8 @@ static void OnSearchResultCallback(search::Result const & res, int queryId)
|
|||
break;
|
||||
|
||||
case search::Result::RESULT_SUGGESTION:
|
||||
[m_searchBar setText: [NSString stringWithFormat:@"%s ", res.GetSuggestionString()]];
|
||||
char const * s = res.GetSuggestionString();
|
||||
[m_searchBar setText: [NSString stringWithUTF8String:s]];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue