I am a beginner java developer and developing a java program that returns a plain output text file on a browser specifically. Because the program is running on a server.
Whenever something goes wrong I just need to show this following ASCII Art-
¯\_(ツ)_/¯
I have tried using BufferedStreamOutput:
errorOutput.writeln("##################################\n"
+ "##### Error Output ######\n"
+ "##### ¯\\_(ツ)_/¯ ######\n"
+ "##################################\n");
The problem is when I look into the output text file I get the following:
##################################
##### Error Output ######
##### ¯\_(ツ)_/¯ ######
##################################
How can I solve this problem using java?