For Android:
|
LoadAsset(assetsManager, path.data(), m_responseString); |
|
m_responseString = byteArrayOutputStream.ToString("UTF-8"); |
For Apple:
|
m_responseString = std::string{static_cast<const char*>(data.bytes), data.length}; |
UWP appears to be okay for BOM but still should do something about content-type.
TODO:
For Android:
BabylonNative/Dependencies/UrlLib/Source/Android/UrlRequest.cpp
Line 74 in 1b40d7b
BabylonNative/Dependencies/UrlLib/Source/Android/UrlRequest.cpp
Line 108 in 1b40d7b
For Apple:
BabylonNative/Dependencies/UrlLib/Source/Apple/UrlRequest.mm
Line 76 in 1b40d7b
UWP appears to be okay for BOM but still should do something about content-type.
TODO: