[webkit-gtk] webkit_web_view_load_html ignores css files

Carlos Garcia Campos cgarcia at igalia.com
Wed Jan 22 11:28:44 PST 2014


El mié, 22-01-2014 a las 14:24 -0500, sami wagiaalla escribió:
> >> If this is a security setting is there a way to get notified of security
> >> settings violations ?
> >
> > Yes, try opening the web inspector (right click -> inspect element) and
> > you will be able to debug the problem. You can see the resources loaded,
> > and the javascript warnings.
> >
> 
> This was a great tip I should have tried it sooner.
> 
> I reproduced my problem with the Minibrowser and used the inspector. TI 
> inspected the CSS file and saw Japanese or Chinese characters.
> 
> It turns out the issue is that when using webkit_web_view_load_html 
> webkit expects the linked files to be UTF16 even if the default charset 
> was set to utf8.
> 
> To test this I converted the included CSS file to UTF16 and everything 
> works.
> 
> Is this a bug or am I missing some setting somewhere ?

I would say it's a bug, WebKit works with UTF16 internally but all our
public API expects utf8 strings, like all other GNOME APIs. Could you
provide a self contained test case?

> Thanks,
>    Sami
> 

Thanks, 
-- 
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20140122/7b6bb85a/attachment.sig>


More information about the webkit-gtk mailing list