Hi, I made a change (still in #bleedingEdge) to STON: I added a STONWriter>>#asciiOnly: option, much like there is one in NeoJSONWriter. Here are the commits: === Name: STON-Core-SvenVanCaekenberghe.61 Author: SvenVanCaekenberghe Time: 2 July 2015, 3:41:33.863432 pm UUID: bb943b63-f2a1-4f2f-8c20-1fa44dba1257 Ancestors: STON-Core-SvenVanCaekenberghe.60 Introduction of STONWriter>>#asciiOnly: option - asciiOnly <Boolean> default is false if true, use \u escapes for all non-ASCII characters most common control characters are still escaped self assert: (self serializeAsciiOnly: 'élève en Français') = '''\u00E9l\u00E8ve en Fran\u00E7ais'''. self assert: (self serialize: 'élève en Français') = '''élève en Français'''. Basically, non-ASCII characters are kept as is unless you request the #asciiOnly encoding option. This is an incompatible change. === Name: STON-Tests-SvenVanCaekenberghe.56 Author: SvenVanCaekenberghe Time: 2 July 2015, 3:42:19.211125 pm UUID: 19b08365-50b1-4837-84ec-ae4b13ed2b70 Ancestors: STON-Tests-SvenVanCaekenberghe.55 Introduction of STONWriter>>#asciiOnly: option This is an incompatible change. === Sven
participants (1)
-
Sven Van Caekenberghe