Openfl “cannot recognize the”. json “file of” utf-8 with bom “when publishing” exe "
.
I use ‘Adobe animation’ to create ‘movieClip’ animations,
Then export the “texture”, and the exported “. json” will be set to “utf-8 with bom” encoding by “vscode”
.
Can release ‘html5’,
Publishing ‘exe’ does not recognize JSON.
.
The reason is that as mentioned above, publishing ‘exe’ cannot recognize the ‘json’ encoded in ‘utf-8 with bom’
.

.
Publishing ‘exe’ is also very simple, change it to ‘utf8’ encoding
.
![]()
.
.
I export animations using ‘Adobe Animate’ and export them as’ JSON ‘encoded in’ UTF-8 with BOM ’
.
Every time I export an animation, I have to modify the encoding again, which is too troublesome. I am looking for a good way. Can I use the code to modify the encoding to “utf8”?
.
I am not familiar with this problem. From my understanding you need to get haxe to ignore the first bytes “EF BB BF”. So try reading the json file as binary remove the problematic bits save it to another json file and then just load that. After getting that working you can experiment with missing out the saving step, or just run a mini haxe program from your hxml that strips it out and then using --next your code.








