I’m wondering how to properly save multi-line string into the database.
And the text saved should be OS independent.
For instance if I Java program that reads from database, it should get UNIX line endings on UNIX systems and WINDOWS line endings in windows.
Is such thing even possible?
Of course it’s possible, but the database won’t have a clue what format the line endings need to be in, nor should it care. It’s up to the program retrieving the data to reformat line endings if/when needed.