MantisBT - CDash
View Issue Details
0012271CDash(No Category)public2011-06-14 12:182013-12-21 17:00
Marco Nolden 
Julien Jomier 
normalmajoralways
resolvedfixed 
1.8 
 
0012271: Guillemet / angle quotes error
we have a test that outputs Guillemets: « » (actually the QSQL driver
does it on a German locale Windows system :( ). This leads to an error,
since the characters remain unquoted in the intermediate XML. In UTF8,
the right-pointing guillemets should be represented as 0x00 0xBB instead
of just 0xBB.


- Create a test that outputs Guillemets
- Upload results to CDash
- Try to view the test output in cdash

Result:
a nearly empty page with the warning:

Warning: DOMDocument::loadXML(): Input is not proper UTF-8, indicate
encoding ! Bytes: 0xBB 0x75 0x6E 0x69 in Entity, line: 30 in
/srv/www/htdocs/cdash/cdash/common.php on line 42
Cdash 1.8.2, CTest 2.8.3
No tags attached.
Issue History
2011-06-14 12:18Marco NoldenNew Issue
2011-06-14 12:19Marco NoldenNote Added: 0026854
2012-01-17 02:39Julien JomierAssigned To => Julien Jomier
2012-01-17 02:39Julien JomierStatusnew => assigned
2012-01-17 02:42Julien JomierNote Added: 0028323
2012-01-17 09:56Brad KingNote Added: 0028342
2013-12-21 17:00Julien JomierStatusassigned => resolved
2013-12-21 17:00Julien JomierResolutionopen => fixed

Notes
(0026854)
Marco Nolden   
2011-06-14 12:19   
Could be related to bug 0012164
(0028323)
Julien Jomier   
2012-01-17 02:42   
If you use CTest 2.8.6 the output of the « will be replaced by "[NON-UTF-8-BYTE-0xBB]" but will still be displayed by CDash (at least version 2.0).

If you are creating the XML by end, you need to encode the character as UTF-8:
«

We'll look and see why CTest cannot encode this character as UTF-8
(0028342)
Brad King   
2012-01-17 09:56   
Is the test environment set up to ensure that the test output that CTest reads is already UTF-8 encoded?