Yes, the browser is going to do with it what it will, and that will likely 
change based on various settings you have in your environment (language, etc).  
But when that string leaves MarkLogic, it will be the UTF-8 codepoint character 
(not the entity, as XQuery converts that to the character).

-Danny

From: [email protected] 
[mailto:[email protected]] On Behalf Of Joe Bryan
Sent: Thursday, May 22, 2014 7:16
To: Florent Georges; MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Non-breaking space in QConsole

Hi Florent,

When I evaluate 'foo bar', and then inspect the results using the Chrome 
Developer Tools, I see 'foo bar' in both Auto and Raw modes. The 
non-breaking space seems to be converted to a regular space when it's copied.

In Firefox, I'm not seeing the   entity at all.

Thanks.

-jb

From: Florent Georges <[email protected]<mailto:[email protected]>>
Reply-To: Florent Georges <[email protected]<mailto:[email protected]>>, 
MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Thursday, May 22, 2014 at 9:12 AM
To: MarkLogic General ML 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] Non-breaking space in QConsole

  Hi,

  When evaluating the following query in QConsole: 'foo&#xa0;bar'
(that is, a simple string containing a non-breaking space), the
result displayed in the result pane is 'foo bar', containing a regular
space instead (both in Auto and Raw modes).

  Which is not only not correct, but might lead to surprises as well.
I spent quite some time trying to "debug" a query, copying a string
value from the result pane and using it in a predicate (just to be
sure I got the *exact same value*), and the query kept failing.
Because the string actually contained some non-breaking space, and
using a regular space did not then match in the predicate.

  Is it a known bug?

  Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to