# probe: does replace() on a String replace every occurrence, so a chain of them undoes percent escapes? (yes: %2520 becomes %20, not a space) # expect-stdout: x y%20 # expect-stdout: z% def main(): var s = String("x%20y%2520%0Az%25") print(s.replace("%20", " ").replace("%0A", "\n").replace("%0D", "\r").replace("%25", "%"))