cpp/poppler-page.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a4fad73c86a2eabe004e7cbaa8c9c0ff42146375 Author: Albert Astals Cid <[email protected]> Date: Thu Dec 6 18:27:04 2018 +0100 cpp: Fix page::text_list encoding issue Text from TextoutputDev always comes in UTF-8 Well it comes in GlobalParams::textEncoding but that is UTF-8 and we don't let people change it diff --git a/cpp/poppler-page.cpp b/cpp/poppler-page.cpp index 9d9526cc..c4955471 100644 --- a/cpp/poppler-page.cpp +++ b/cpp/poppler-page.cpp @@ -365,7 +365,7 @@ std::vector<text_box> page::text_list() const TextWord *word = word_list->get(i); std::unique_ptr<GooString> gooWord{word->getText()}; - ustring ustr = detail::unicode_GooString_to_ustring(gooWord.get()); + ustring ustr = ustring::from_utf8(gooWord->c_str()); double xMin, yMin, xMax, yMax; word->getBBox(&xMin, &yMin, &xMax, &yMax); _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
