My java application use base64 encoding which puts a new line (\n
) after every 76 character. I need to put this encoded string in a properties file and the newline breaks the functionality.
When I do a encodedString.replaceAll("\n", "");
things are working fine, but I just want to make sure that this is expected and I am not introducing a hidden issue.