I have a groovy string like this:
String test =
"""
abc{ der}
token: "\330\272%\006\272W\264\000T\226\022[\310\2207#fs\032q"
""";
However groovy is printing out like “غ%ºW”. How can I make it to print out exactly like the above string. I don’t want to escape the \.
Thanks,
It sounds like what you want is the tripple slashy string, which doesn’t exist (yet?)
You might try:
Update! Now in Groovy 1.8, the slashy string is multiline. This should work:
See: http://docs.codehaus.org/display/GROOVY/Groovy+1.8+release+notes#Groovy1.8releasenotes-Slashystrings