Search code examples
cssfontszk

Using font as icon library


I am trying to use entypo as the source for the icons in my webapp. This webapp I am developing using ZK as the UI technology.

The problem is, when I try to use an icon from that font using:

<span sclass="entypoWhite">&#128100;</span>

I get the following error: '' (0xd83d) is not a valid XML character

Am I doing anything wrong?

PS. I am using ZK version 5


Solution

  • Actually its a bug from ZK itself.

    They have there own DOM verifier and from &#100000 it goes wrong. That's why also the &#9666; do work.

    Following me the error is here :

    http://grepcode.com/file/repo1.maven.org/maven2/org.zkoss.common/zcommon/6.5.1/org/zkoss/idom/Verifier.java#Verifier.isXMLCharacter%28char%29

    At the method at line 227.
    I'll post a bug report for it : http://tracker.zkoss.org/browse/ZK-2261