ActiveState Community

Preview: External .css files

Posted by lwienhues on 2009-06-22 11:09

Hey there!

I'm having a little problem with the newest version of Komodo Edit:

When I try to preview a HTML-File with a linked external .css file, Komodo doesn't seem to find that .css-file.
When I open the saved .html file manually with a browser everything works fine. Just the in-Komodo-preview doesn't use the CSS-Styles. Is this a known problem? (I didn't find anything on the search) Is there a solution?

Greetings,
Lukas W.

toddw | Mon, 2009-06-22 11:28

Does the Komodo preview work correctly (includes the styles) when you use the refresh button?

lwienhues | Mon, 2009-06-22 11:33

No, I tried everything...
The preview works fine, at least for the HTML part. It also works when I write the CSS-Styles directly into the header. It somehow has a problem with the external .css file...

toddw | Tue, 2009-06-30 16:02

I have not been able to reproduce the problem thus far. Can you create a simple reproducible sample and attach it to a new Komodo bug at:
http://bugs.activestate.com/enter_bug.cgi?product=komodo

Thanks,
Todd

toddw | Thu, 2009-10-22 11:05

A bug was logged here:
http://bugs.activestate.com/show_bug.cgi?id=84741

The workaround is to explicitly set the document encoding to "UTF-8" before
previewing the file.