mathiasbynens / jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
https://mths.be/jsesc
MIT License
716 stars 48 forks source link

Why ó is escaped to \xF3 instead of \u00F3 #30

Closed danieltigse closed 8 years ago

mathiasbynens commented 8 years ago

Because it’s shorter. Why would you not want this? If you’re trying to generate JSON, use the json option.