Forum Bugs

Encoding in header

lindm
My html doc is using ISO-8859-1. When I try using international characters in the css header content it does not work. It works however with the UTF hex character. Is this supposed to be like this?

ISO: å
UTF hex: \00E5
Character: å
mikeday
Perhaps an encoding problem, do the characters work when you place them in the regular text content of the document, such as in a paragraph?
lindm
My html document is ISO-8859-1 encoding so for instance my swedish character å is stated as å in the file but shows just fine in a webbrowser. When adding å to my header in the css file it shows all the characters (å ). The swedish å is only correct in the pdf output when I use the UTF hex for å which is \00E5
mikeday
Okay, HTML and XML entities like &aring; are not valid in external CSS style sheets, you need to use numeric character escapes or direct UTF-8 encoding. However, you can still use entities in <style> elements within HTML and XML documents.
lindm
Alright. Thanks!