Print Page | Close Window

AnsiStrings

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1179
Printed Date: 09 Feb 26 at 11:24AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AnsiStrings
Posted By: divo
Subject: AnsiStrings
Date Posted: 18 Aug 09 at 11:58AM
Hi,

I'm using quickpdf 7.15 with Delphi2009. In contrast to the documentation, every function want to have AnsiString instead of String parameters. That's ok as long as I don't do any fileio: quickpdf deletes every non ascii-char from filenames: SaveToFile('Käse.pdf') makes it write a file 'Kse.pdf'. What could be wrong here?

thanks,
Dirk




Replies:
Posted By: Ingo
Date Posted: 18 Aug 09 at 12:42PM
Hi Dirk!

My answer is a bit spongy ... ;-)
This have to do with unicode.
D9 uses it - QP not.
I think the new beta 7.16 of QP will support it soon.

Cheers, Ingo



Posted By: Rowan
Date Posted: 18 Aug 09 at 12:58PM
Hi Guys,

The latest version of Quick PDF Library supports Unicode for filenames and paths. This functionality was included in the most recent version (7.15).

http://www.quickpdflibrary.com/products/quickpdf/updates.php - http://www.quickpdflibrary.com/products/quickpdf/updates.php

If you make use of the new unicode support then this problem shouldn't occur anymore.

Cheers,
- Rowan.


Posted By: divo
Date Posted: 18 Aug 09 at 1:51PM
Hurra, it works!
Quickpdf supports unicode filnames means it supports utf-8 encoded filenames. All I had to do was to replace the cast "AnsiString(filename)" with "UTF8Encode(filename)".
Thanks for your answers :)


Posted By: Michel_K17
Date Posted: 19 Aug 09 at 6:37AM
Hi Divo,

   Just be aware that the Merge function has a bug. It will not merge pdf files with unicode characters in the path leading to the filename. However, Debenu is aware, and fixed it for the next version (7.16).

   Cheers!



-------------
Michel



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk