Jump to main navigation, main content

Archived entry | Matt Wilcox .net

Special characters in CSS generated content

You can’t use HTML entity codes in CSS generated content - if you try you just end up with the CSS content spitting out the HTML reference code. But, you can use escaped UTF hex codes instead, and then everything works nicely. The solution to my problem was kindly found by the power of Google and provided by Alan Hogan.

You may need to find out what the UTF hex codes are for a character. I used UTF16 hexidecimal and it worked great.

From the archives

Other enteries filed under:

Of The Moment

Site information

Built with valid XHTML and CSS, designed with web standards and accessibility in mind. Best viewed in a modern browser [Firefox, Safari, Opera]

This domain and all content is a copy of my old website, for historical purposes only.