fix-json-encoding-spec icon indicating copy to clipboard operation
fix-json-encoding-spec copied to clipboard

Character encoding

Open donmendelson opened this issue 8 years ago • 2 comments

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.

donmendelson avatar Dec 07 '16 16:12 donmendelson

unicode has several variants. It is recommended that the encoding be fixed to UTF-8 only.

gelupa avatar Aug 02 '19 01:08 gelupa

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.

donmendelson avatar Aug 02 '19 14:08 donmendelson