Skip to content

Commit ae25413

Browse files
committed
Fixes UTF8 encoding regression
#fixes #163 #closes #163
1 parent 8920520 commit ae25413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NppJSONViewer/NppJsonViewer/JsonViewDlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ auto JsonViewDlg::PopulateTreeUsingSax(HTREEITEM tree_root, const std::string &j
301301

302302
HTREEITEM JsonViewDlg::InsertToTree(HTREEITEM parent, const std::string &text)
303303
{
304-
auto wText = StringHelper::ToWstring(text);
304+
auto wText = StringHelper::ToWstring(text, CP_UTF8);
305305
return m_hTreeView->InsertNode(wText, NULL, parent);
306306
}
307307

0 commit comments

Comments
 (0)