Skip to content

UTF-8 helpers silently return empty data when codecs are unavailable #203

Description

@OskarEichler

stringToUTF8 and utf8ToString currently log and return an empty result when no global/optional codec resolves. That can turn a non-empty Request or Response into an empty payload. Both helpers also allocate a new codec on every call. I can contribute explicit errors for non-empty conversions without a codec, retain harmless empty conversions, and lazily reuse non-streaming codec instances. This does not add a mandatory dependency or claim to make dynamic Metro resolution work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions