larisa1995 commented on issue #1954: URL: https://github.com/apache/jena/issues/1954#issuecomment-1630856603
Dear @afs Thank you for your prompt reply. No, I did not apply Notepad++ to the provided examples. This is a riot.bat output. I just open them in Notepad++ to check encoding. Regular Notepad of Windows (not Notepad++) shows UTF-16 LE encoding. I noticed problems when using riot.bat repeatedly for the same file to change serialization. My specific case was "ntriples (in UTF-8) -> turtle -> XML/RDF". The first iteration produces UTF-16 output, but the second one expects UTF-8 file as input. As a result, the second iteration (turtle to XML/RDF) produces an error file because the first one changed encoding. But if manually change the encoding of the result of the first iteration from UTF-16 to UTF-8 in Notepad++, then it works fine (actually probably just Powershell without the Notepad++ could have helped). This also happens without using Notepad++ at all. The first iteration produces UTF-16 output, but the second one expects UTF-8 file as input. Please see "no Notepad++, not even to check encoding" files just riot.bat attached (file with error included). [simpleExample1.zip](https://github.com/apache/jena/files/12015310/simpleExample1.zip) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
