Hi all,
I'm trying to implement an export functionality to a webapp I've developed. The whole workflow is there's an Elasticsearch query, the results are stored in Arraylist of Article classes, which just contains strings.
Now, within this article class, there's a 'Text' field that has a large text body with line breaks in the middle of it.
When I do a System.out.println(Article.getText()); , I get the properly spaced output in console. However, when I do the export to the .doc file, the linefeeds are replaced with unknown characters ("?"). See attached image.
Here's my code to write the export at this point:
Is there a way to determine what that character is that is giving me the ?'s in Word and replace it with System.getProperty("line.separator") ? I just don't know how to go about finding what that character would be in Java.
Thanks in advance!