ofxJSON icon indicating copy to clipboard operation
ofxJSON copied to clipboard

UTF-8

Open chriship opened this issue 8 years ago • 2 comments

Hi,

Should this work with UTF-8 encoded files? If I try to open a file using json.open("file.json") that is UTF-8 encoded I get the following error:

ofxJSONElement::openLocal: Unable to parse file.json: * Line 1, Column 1 Syntax error: value, object or array expected.

If the same file is encoded as ANSI then it works fine.

chriship avatar Aug 23 '17 12:08 chriship

This is a jsoncpp issue https://github.com/open-source-parsers/jsoncpp/issues/428

bakercp avatar Aug 23 '17 13:08 bakercp

We need to confirm that the old API is not being used. Since ofJson is now the OF standard, this addon isn't maintained anymore, but PRs are welcome!

bakercp avatar Aug 23 '17 13:08 bakercp