Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
DrawHTMLText Charset |
Post Reply |
Author | |
Eric24
Team Player Joined: 28 Jun 09 Location: Dallas, TX Status: Offline Points: 29 |
Post Options
Thanks(0)
Posted: 16 Aug 11 at 2:28AM |
What charset does DrawHTMLText expect? I know it isn't UTF-8, but it may also not be ISO-8599-1 (in that it won't print a Euro symbol). If the charset isn't a "standard" one, is there a character table somewhere?
|
|
Eric24
Team Player Joined: 28 Jun 09 Location: Dallas, TX Status: Offline Points: 29 |
Post Options
Thanks(0)
|
PS - I should mention that I'm using the COM/ActiveX version of QPDF (but I'd be interested to know the answer for the Delphi version as well).
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
From the Developer Guide that ships with QPL.
Unicode, UTF-8 and the DLL and Delphi Editions - There are many different ways to encode Unicode characters. One way is to use strings with 16-bit characters. COM/ActiveX uses 16-bit characters, so adding Unicode support for the ActiveX edition of the library was easy. For the Delphi and DLL editions, the strings have always been 8-bit characters. Unfortunately we can’t change the definition of functions as this would cause issues with backwards compatibility. This means that when using the Delphi and DLL editions and working with Unicode characters, you need to encode your file names with UTF8 encoding, as mentioned in the function reference. Make sure that you pay attention to each function description as it will specifically mention if you need to encode or decode the input or output. Different languages will have different functions to do the UTF8 encoding." I believe that the DLL / ActiveX are technically UTF-16 or WideStrings - I am guessing but it could be WinAnsiEncoding. If you cannot get it to work still then post a small snippet of code and we can test it out. What development tool are you using ? Does it support 16 bit strings ? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store