mendix / RestServices

REST service module for Mendix. Supports consuming and publishing REST based services and real-time data synchronization. Supports JSON, form-encoded, multipart and binary data transport.
Apache License 2.0
31 stars 46 forks source link

UTF-8 Byte Order Mark (BOM) #53

Closed ArthurvdMolen closed 9 years ago

ArthurvdMolen commented 9 years ago

When a JSON server issues an UTF-8 Byte Order Mark (BOM) the validation will fail within the restservices. I have fixed not the issue but could mendix just ignore it like browsers?

see example:

https://groups.google.com/forum/#!topic/golang-nuts/OToNIPdfkks

mweststrate commented 9 years ago

Thanks for reporting, I'll consider this definitly for the next release. In the mean time, do you happen to have a ready to use fix / work around for this?

ArthurvdMolen commented 9 years ago

Yes, i found the issue and fixed it. Application is an JSON libray we build for Wordpress and we fixed to code there but I think Mendix should be able to deal with BOM's I suppose you apply some sort of open source library or is all code Mendix build?

mweststrate commented 9 years ago

Ideally we should be able to deal with it. Rest services relies heavily on Apache commons, so probably there is something in there.

mweststrate commented 9 years ago

Published