I have some string resources that until now were included in my app as regular strings. However they are huge and I figured that I'll compress them to decrease the prg size. I have the compress.py that generates the strings.xml with the compressed strings and the Monkey C decompress. The problem is that the compression essentially turned the original unicode strings into binary. There can be any byte in it (0-255).
First I tried to escape them in the xml file, but it seems to be impossible "by definition" of xml, because most of the control characters (0-31) are impossible to escape in an xml.
Then I generated the strings as JsonData, each string in it's own file, but I have similar problems.
Here's an example json file:
"_}\u00fa\u001b;gB\u00fc\u00d9\u00a77c\u00b67?_\u00casw\u00dfW\u00da\u00bf\\\u00db\u00b7o\u00b7\u009d\u00da1\u00b6\u00fd\u00af\u00da\u008b\u00e7\u001dY\u00c7W2\u00fc\u00f9u[m\u0017==Qm\u001a\u00e7\u00e7\u00db\u00f1\u0013=\u00dd\u00f1\u00b6\u00f3\u00d5\u00a6W\u00ca\u00b3o\u00c6\u00b1\u00ed\u00b3\u0018;\u00d11|;\u00de\u0087F\u0019o\u00db\u00bf}\u00ba\u00d3v;\u00d1\u00f3"