ndw’s avatarndw’s Twitter Archive—№ 10,838

  1. In Java, what’s the most efficient way to replace all control characters in a string with corresponding \uXXXX escapes?