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 2511 - Literals061 contains an ambiguous character
Summary: Literals061 contains an ambiguous character
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Mike Rorke
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 21:48 UTC by Alberto Massari
Modified: 2005-12-07 17:14 UTC (History)
0 users

See Also:


Attachments

Description Alberto Massari 2005-11-11 21:48:51 UTC
The query has this comment

(: Description: Test for string literal containing the character reference
'€' which transaltes into the  symbol :)

The "" character is stored as byte 0x80; this means that the file is not
encoded in UTF-8, but in the windows-1252 code page. And our processor assumes
the queries are in UTF-8 unless the encoding is specified in the header.

I see three possible solutions:
1) add a 'xquery version "1.0" encoding "windows-1252";' header [risky, it would
be testing support for different encodings]
2) save the query using UTF-8
3) remove the symbol and use the full word 'Euro'
Comment 1 Mike Rorke 2005-11-15 18:09:58 UTC
Updated the test description in the XQ file and the catalog and also re-saved 
the query file as UTF-8