This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2399 - fn-encode-for-uri1args-2.txt is incorrectly encoded
Summary: fn-encode-for-uri1args-2.txt is incorrectly encoded
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.7.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Joanne Tong
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-20 09:54 UTC by Michael Kay
Modified: 2005-11-01 16:31 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-10-20 09:54:47 UTC
In query fn-encode-for-uri1args-2.txt, the test URI

"http://www.example.com/~bébé"

appears. In the source text, the e-acute characters are represented by the octet
xE9, indicating that the query text is actually encoded in iso-8859-1 rather
than in UTF-8. The file should either be in UTF-8, or it should have an encoding
declaration specifying iso-8859-1 at the start of the query.
Comment 1 Martin Probst 2005-10-26 12:56:55 UTC
I can't confirm the original bug in this post, on my system both the query and
the expected result are encoded correctly. However, there is an encoding problem
in IRI to URI:

fn-iri-to-uri1args-2.xq is encoded incorrectly (is ISO-8859-1, should be UTF-8):

Queries/XQuery/Functions/AllStringFunc/EscapingFuncs/IRIToURIfunc/fn-iri-to-uri1args-2.xq
Comment 2 Joanne Tong 2005-11-01 16:31:24 UTC
fn-iri-to-uri1args-2.xq is encoded incorrectly.  fn-encode-for-uri1args-2.xq 
seems to be ok.  

fn-iri-to-uri1args-2.xq is now fixed.

thanks,
Joanne