support of unicode

Hi
when i need to extract text from the text operator, std::string is
used(I use GetFontText method). When text in operator has some unicode
characters, the are
truncated in std::string and I am unable to get it back. Try for
example word "graficky" in "zadani.pdf" distributed with pdfeditor.
(ligature "fi")
I solved this issue by changing paraneter from std::string to
std::wstring, which works well ( i am not sure if this is correct way)
Regards
Eva

Thread view

Hi
when i need to extract text from the text operator, std::string is
used. When text in operator has some unicode charaxters, the are
truncated in std::string and I am unable to get is back. Try for
example word "graficky" in "zadani.pdf" distributed with pdfeditor.
I solved this issue by changinf paraneter from std::string to
std::wstring, which works well ( i am not sure if this is correct way)
Regards
Eva

Hi
when i need to extract text from the text operator, std::string is
used(I use GetFontText method). When text in operator has some unicode
characters, the are
truncated in std::string and I am unable to get it back. Try for
example word "graficky" in "zadani.pdf" distributed with pdfeditor.
(ligature "fi")
I solved this issue by changing paraneter from std::string to
std::wstring, which works well ( i am not sure if this is correct way)
Regards
Eva

On Thu, Jun 16, 2011 at 10:05:49AM +0200, Eva Pešková wrote:
> Hi
>
> when i need to extract text from the text operator, std::string is
> used(I use GetFontText method). When text in operator has some unicode
> characters, the are
> truncated in std::string and I am unable to get it back. Try for
> example word "graficky" in "zadani.pdf" distributed with pdfeditor.
> (ligature "fi")
> I solved this issue by changing paraneter from std::string to
> std::wstring, which works well ( i am not sure if this is correct way)
Care to send a patch?
--
Michal Hocko