[poppler] getText() broken?
Frank Meerkötter
frank at meerkoetter.org
Mon Oct 10 12:47:06 PDT 2005
Frank Meerkötter wrote:
> Albert Astals Cid wrote:
>
>> Well, the getText Qt binding is not as good as it can be, trust me, i
>> made it :-D
>>
>> Don't know about hyphens, dashes, etc, but about ligatures the
>> problem is probably that they are not two characters but a "strange"
>> character that represents the ligature itself so the translations is
>> not easy (if possible) to do, maybe the dashes/etc have the same
>> problem.
>
[..]
>
> thanks for your reply. I will have a look at the gnome bindings. Let's
> see how they do it...
>
The problem was not within the Qt-Bindings. There was no problem at all.
I used
something like
qWarning("%s", str.ascii());
to check what text i've copied from a document.
When using
qWarning("%s", str.unicode());
all text is printed to stderr.
I was confused by the fact that QString::ascii() produces a string
spiked with null bytes when containing non-ascii chars.
Regards,
Frank
More information about the poppler
mailing list