On Wed, 2014-11-26 at 16:35 +0800, MarkTam亿万富翁 wrote: > > //PdfString sJap(reinterpret_cast<const > pdf_utf8*>("你好!中国")); error // PdfString > sJap(reinterpret_cast<const pdf_utf8*>(L"你好!中国")); true but not show > PdfString sJap("你好!中国"); > // PdfString sJap((wchar_t*)("你好!中国")); > std::string sTemp = sJap.GetStringUtf8(); >
Hi, you didn't seem to try unicode encoding in the source file and unicode variant of the PdfString constructor, that is: PdfString sJap(L"你好!中国"); I would try that. By the way, 0.9.1 is quite old, I would update to a more recent version, 0.9.3 ( http://podofo.sourceforge.net/download.html ). Hope it helps, zyx -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users