Hi,

PdfString has now a method GetStringUtf8(), which is guaranteed to always 
return UTF8 encoded data.

This should solve your problem. 

Best regards,
        Dom

Am Dienstag, 15. Januar 2008 schrieb Philipp Wagner:
> Dominik Seichter schrieb:
> > Hi,
> >
> > Hmm, all strings but the first are Unicode strings. So it is a problem in
> > podofopdfinfo and not in PdfString. PdfString::GetUnicodeString() should
> > be used if PdfString::IsUnicode() returns true. I wanted to add a method
> > PdfString::GetStringUtf8 anyways that will return an UTF8 string in any
> > case, this would fix the problem. But I don't have time to do it now, so
> > you will either have to wait a few days, or check IsUnicode() before
> > using your strings :(.
>
> Hm, the problem is, IsUnicode() does not return true, but IsHex() does.
> I guess I would need to handle the UTF16-string myself (= converting it
> to something more useful)? But adding a method that always returns a
> UTF-8 string is probably the best solution anyways as this will save
> much trouble over time, so I'll just go with waiting for it.
>
> Thank you so far for your help!
>
> Philipp



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to