I have a crash log (not sure how it ended up like this but anyway) and it has some unicode line break characters (\U00002028
) in it even when saved in macOS TextEdit.
I can just about get around this with something like this:
auto lines = StringArray::fromTokens (file.loadFileAsString(), "\r\n\U00002028", {});
But of course this doesn’t handle correctly the break combination \r\n
as StringArray::addLines()
does. Would adding this unicode character to the cases that are break characters in StringArray::addLines()
work? Or cause other issues?
Example file attached.
unicode_break.txt (368 Bytes)