My java application use base64 encoding which puts a new line (
) 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("
", "");
things are working fine, but I just want to make sure that this is expected and I am not introducing a hidden issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…