15

i have this html code:

<span class="comma_left">&#147;</span>

And

<span class="comma_right">&#148;</span>

As well, both representing left & right commas.

Strange thing though, HTML5 validation throws the error:

"A numeric character reference expanded to the C1 controls range."

I really don't want to just avoid this error, what can i do?

1
  • Are you sure about the codes? 147 (U+0093) and 148 (U+0094) are not valid Unicode code points.
    – RoToRa
    Mar 21, 2011 at 15:44

2 Answers 2

31

The C1 control range refers to characters mapped to byte encodings 0x80 to 0x9f (128 to 159) in Latin-1, or to Unicode code points U+0080 to U+009F. Unicode considers these to be "control characters", which are explicitly disallowed by the HTML5 parsing algorithm.

Your problem is occurring because you're using the Windows code page 1252 encodings of directed double-quote marks, which are incompatible with both Latin-1 and Unicode. You could try these compatible variants:

1
3

Try to change &#147; by &#8220; and &#148; by &#8221; it seen to be the same caracter and valid W3C.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.