Print Page | Close Window

BUG: Can't open filenames with ASCII>127

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1395
Printed Date: 23 Nov 24 at 7:48AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: BUG: Can't open filenames with ASCII>127
Posted By: Didi
Subject: BUG: Can't open filenames with ASCII>127
Date Posted: 31 Mar 10 at 8:07AM
It seems to  me, QuickPDF can't open files with german Umlaut, like "zubehör.pdf".
Does anyone know about that topic?



Replies:
Posted By: Ingo
Date Posted: 31 Mar 10 at 11:00AM
Hi Didi!

Yes... for me, too.
I've never had such case 'cause really unusual using umlauts.
You should post on the official support-pages ... not here 'cause here're only users.

Cheers, Ingo
 


Posted By: JanN
Date Posted: 31 Mar 10 at 3:03PM
Hi Didi!

In Delphi 7 I could get around this issue using:

PDFLoadFromFile(0, Pchar( AnsiToUtf8(FileName) ));


Posted By: Rowan
Date Posted: 31 Mar 10 at 6:43PM
Unicode file names are supported, but for the Delphi and DLL editions of the library you will need to encode using UTF-8. This isn't necessary for the ActiveX edition as COM\ActiveX already uses 16-bit strings...


Posted By: Ingo
Date Posted: 31 Mar 10 at 7:11PM
So i've learned something, too ;-)
Thanks Jan, thanks Rowan!



Posted By: Didi
Date Posted: 22 Apr 10 at 2:06PM
Originally posted by Rowan Rowan wrote:

Unicode file names are supported, but for the Delphi and DLL editions of the library you will need to encode using UTF-8. This isn't necessary for the ActiveX edition as COM\ActiveX already uses 16-bit strings...
But the problem isn't 8 or 16 Bit, it's 7 or 8 Bit. In non-english ,European languages characters in filenames like Ä,Ö,Ü and so on, are as usual as  A,E,O.
That's  ASCII, no Unicode.


Posted By: Ingo
Date Posted: 22 Apr 10 at 6:50PM
Hi Didi!

Unicode or (only) german umlauts... anyway... with the utf-convertion
you'll get it to work if there are umlauts. I had the same problem.
I've done it like this:
// . . .
function DoAnything(const FName: PChar): LongInt; stdcall;
// . . .
       fexist := QP.LoadFromFile(FName);
       if ( fexist = 0 ) then
          begin
             fexist := QP.LoadFromFile(Pchar( AnsiToUtf8(FName) ));
// . . .

Cheers, Ingo





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