From zboszor at pr.hu Fri Jun 5 06:20:57 2015 Content-Type: multipart/mixed; boundary="===============3327192579381612541==" MIME-Version: 1.0 From: Boszormenyi Zoltan To: mingw at lists.fedoraproject.org Subject: Question about the MinGW-packaged Webkit Date: Tue, 13 Dec 2011 11:21:50 +0100 Message-ID: <4EE7273E.5090003@pr.hu> --===============3327192579381612541== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I am trying to use the webkit_web_view widget in my GTK2 application. 1st problem: I am trying to display an report (the engine can output HTML) this way: webkit_web_view_load_string(WEBKIT_WEB_VIEW(report_web_view), buf, "text/ht= ml", "ISO-8859-2", url); char *buf contains the HTML content of course, char *url contains "file:///C:\Program Files\myapp" as the base url so the content should also find an external logo image in that directory. The problem is that the logo isn't displayed, neither under Wine, nor under native Windows. What should be set as the "base url" to get it displayed? 2nd problem: The content's HTML header looks like this: RLIB Report The report contents (besides the logo) is displayed perfectly under Wine. But in Windows it swallows a some lines, maybe during conversion. Interestingly, all the lines that contain accented hungarian characters are visible, but ones that only contains plain ASCII are not. I would expect the reverse: iconv bails out with error in case of inconvertible characters. All the lines are present in the html string, I verified it by writing it t= o a disk file. My application is packaged with NSIS and libwebkitgtk-1.0-0.dll and all the required DLLs are included. Is there anything else I should also package to make webkit display everything? Thanks in advance, Zolt=C3=A1n B=C3=B6sz=C3=B6rm=C3=A9nyi --===============3327192579381612541==-- From nerijus at users.sourceforge.net Fri Jun 5 06:20:57 2015 Content-Type: multipart/mixed; boundary="===============0153926979731406594==" MIME-Version: 1.0 From: Nerijus Baliunas To: mingw at lists.fedoraproject.org Subject: Re: Question about the MinGW-packaged Webkit Date: Tue, 13 Dec 2011 20:04:24 +0200 Message-ID: In-Reply-To: 4EE7273E.5090003@pr.hu --===============0153926979731406594== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, 13 Dec 2011 11:21:50 +0100 Boszormenyi Zoltan wro= te: > char *buf contains the HTML content of course, char *url > contains "file:///C:\Program Files\myapp" as the base url so > the content should also find an external logo image in that directory. > The problem is that the logo isn't displayed, neither under Wine, > nor under native Windows. What should be set as the "base url" > to get it displayed? Probably "file:///C:/Program Files/myapp". Regards, Nerijus --===============0153926979731406594==--