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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - BUG: Can't open filenames with ASCII>127
  FAQ FAQ  Forum Search   Register Register  Login Login

BUG: Can't open filenames with ASCII>127

 Post Reply Post Reply
Author
Message
Didi View Drop Down
Beginner
Beginner


Joined: 23 Mar 10
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Didi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Can't open filenames with ASCII>127
    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?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 


Edited by Ingo - 31 Mar 10 at 11:00AM
Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 31 Mar 10 at 3:03PM
Hi Didi!

In Delphi 7 I could get around this issue using:

PDFLoadFromFile(0, Pchar( AnsiToUtf8(FileName) ));
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 31 Mar 10 at 7:11PM
So i've learned something, too ;-)
Thanks Jan, thanks Rowan!

Back to Top
Didi View Drop Down
Beginner
Beginner


Joined: 23 Mar 10
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Didi Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store