You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This almost certainly depends on environmental factors, however in a Rails app where we have a fairly vanilla set-up with Avromatic calling #avro_message_value yields an UTF-8 encoded string.
That's pretty harmless, except that when comparing strings (for e.g in tests) which this project does to guard against other teams sneakily changing Avro schemas the UTF-8 has pretty variable encoding e.g:
It should be as simple as forcing the encoding on that method return value before returning it.
The value for new strings can (I believe) depend on Encoding.default_internal and .default_external which can be controlled by env vars and other systemwide configuration.
The text was updated successfully, but these errors were encountered:
This almost certainly depends on environmental factors, however in a Rails app where we have a fairly vanilla set-up with Avromatic calling
#avro_message_value
yields an UTF-8 encoded string.That's pretty harmless, except that when comparing strings (for e.g in tests) which this project does to guard against other teams sneakily changing Avro schemas the UTF-8 has pretty variable encoding e.g:
It should be as simple as forcing the encoding on that method return value before returning it.
The value for new strings can (I believe) depend on
Encoding.default_internal
and.default_external
which can be controlled by env vars and other systemwide configuration.The text was updated successfully, but these errors were encountered: