JPL-IMCE / gov.nasa.jpl.imce.oml

Ontology Modeling Language (OML) Workbench
14 stars 1 forks source link

Improve support for special characters in values for omlzip. #199

Closed NicolasRouquette closed 6 years ago

NicolasRouquette commented 6 years ago

The suggestion is as follows:

Example:

This is a special quote:
"Special characters are a pain!"

This would yield the following array:

["This is a special quote:", "\n", "\"", "Special characters are a pain!", "\""]
NicolasRouquette commented 6 years ago

For serialization/deserialization, an alternative could be Base64 encoding/decoding.

However, this is undesirable because the omlzip format is intended to support precise differences in GIT. If we were to encode raw strings in Base64, we'd have to have a non-trivial utility to diff encoded raw strings.