This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
It seems that the source file for query fn-escape-html-uri-20 is encoded in iso-8859-1 rather than utf-8.
Also applies to fn-escape-html-uri-21, except that in this case the Euro symbol is encoded as x80, which is some MS-Windows codepage encoding, I think.
Note that in fn-escape-html-uri-21, the results are wrong as well. The correct %HH escaping of the Euro symbol (Unicode x20AC) is %E2%82%AC.
Mike: Really having a hard time with this. Do you have a proposed solution? Thanks, Carmelo
This is still incorrect in 0.8.6. The simplest solution is to replace the "e-acute" character in the first query with a character reference &_#xe9; (no underscore), and the Euro symbol with &_#x20AC; That way, the encoding of the file containing the query won't matter any more.
Moreover, the expected results for fn:escape-html-uri-21 are wrong. The escape sequence %C2%80 is the UTF-8 representation of the codepoint hex 80. But there is no Unicode character assigned to this codepoint. The mistake seems to have arisen because hex 80 is the representation of the Euro symbol in some proprietary Windows character set. The correct results are example%E2%82%ACexample
Mike: Thanks for the suggestion. I did teh changes as suggested. Hopefully that will do the trick. Please close the bug when able to verify and if in agreement. Carmelo
These two tests are still wrong in 0.90. In fn-escape-html-uri-20, the test is fn:escape-html-uri("exampleé€example") and the correct result should be example%C3%A9%E2%82%ACexample In fn-escape-html-uri-21, the query still contains a character encoded as x80 which is an incorrect encoding of the Euro character. To eliminate encoding problems, I suggest writing the character as &_#x20AC.
Michael: At some point, I did fixed these two devils and somehow they got lost. Resubmitted new results for fn-escape-html-uri-20 and new results and query for fn-escape-html-uri-21. Thanks, Carmelo