fix-json-encoding-spec
fix-json-encoding-spec copied to clipboard
Character encoding
The spec should say something about character encoding. The default encoding in FIX tag=value is US-ASCII, so converting it to JSON will implicitly be in that encoding. However, for web APIs, the expectation would be to use UTF-8 by default.
unicode has several variants. It is recommended that the encoding be fixed to UTF-8 only.
Unfortunately, the JSON standards simply say "A JSON text is a sequence of tokens formed from Unicode code points" and do not peg to a specific version of Unicode.
BTW we changed the SBE standard to allow 8-bit character encodings since FIX engines no longer constrain tagvalue encoding to ASCII.