Decoding a a document with lossy utf8 conversion #226

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • bson-1.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/mongodb/bson-rust/issues/226

      I'm bumping the bson version in the Mongo C driver wrapper to the latest version in thijsc/mongo-rust-driver/pull/58.

      We currently decode a few responses from Mongo with lossy utf8 conversion since we found out that sometimes invalid characters kan make it into error responses. We used bson::decode_document_utf8_lossy for this.

      It looks like bson::Document::from_reader is the replacement. I don't see a way to have it use lossy encoding. Is there a way to achieve this?

            Assignee:
            Patrick Freed
            Reporter:
            Alexander Golin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: