Encoding problem with JSON module

Bug #932186 reported by William Candillon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Invalid
High
William Candillon

Bug Description

Running the query attached using the following command line:
~/28msec/zorba/build/bin/zorba -q test.xq -f

Results in the following error:
dynamic error [err:FOCH0001]: "55357": invalid code point

However the following command:
~/28msec/zorba/build/bin/zorba -q test.xq -f --serialize-text
Works fine.

Removing the json:serialize() function call in the query prevents the error to happen.

Revision history for this message
William Candillon (wcandillon) wrote :
Changed in zorba:
assignee: nobody → Paul J. Lucas (paul-lucas)
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

This appears to be a problem with the serializer -- which is NOT my code, hence not my bug, hence not related to this branch.

Changed in zorba:
status: New → Triaged
assignee: Paul J. Lucas (paul-lucas) → William Candillon (wcandillon)
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Actually, it's not a problem with the serializer at all. Code-point 55357 is illegal in XML 1.0 which is that Zorba serializes as by default. You need to specify that your query is XML 1.1.

Revision history for this message
William Candillon (wcandillon) wrote :

Any change to improve the error message?
I removed the link from the json branch.

Changed in zorba:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.