Reputation: 797
I'm using a function to remove accents from strings. It uses many regex like/[\300-\306]/g
, /[\340-\346]/g
, /[\310-\313]/g
, /[\350-\353]/g
to reference a range of accented characters like. [\300-\306] represents [Á, Ã, Â, À..]. I searched about this representation but didn't find any reference about it. I also think it isn't Ascii, unicode, utf8 since this numbers are different from their respective representation of these characters. What representation is that?
Upvotes: 0
Views: 706
Reputation: 531888
They are just octal representations of the byte values. \300
is 192 decimal.
Upvotes: 2