How to replace Unicode 'LINE SEPARATOR' (U+2028) in a string

I’m receiving data from a news feed.
The data is parsed as XML and send to a weblistbox

When there is a Unicode ‘LINE SEPARATOR’ (U+2028) in the data my app crashes.
Based on this article http://timelessrepo.com/json-isnt-a-javascript-subset I would like to replace the string to see if it is the line separator that kills my app.

I’ve tried this:

xmlString = ReplaceAll(xmlString, "
", EndofLine)

before the data is parsed as XML. But no joy.

Any ideas

Some times the answer is right in front of you but you don’t see it :slight_smile:

xmlString = ReplaceAll(xmlString, &u2028, EndofLine) WORKS!

[quote=384795:@jvindSgaardAndersen]When there is a Unicode ‘LINE SEPARATOR’ (U+2028) in the data my app crashes.
[/quote]

Right, I came across that as well. IMHO this is a framework bug. See <https://xojo.com/issue/35919> for further details. Maybe you can convince Xojo to reopen the ticket?