Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-648

Decoding a a document with lossy utf8 conversion #226

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-1.2.0
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Patrick Freed
            Reporter:
            alexander.golin@mongodb.com Alexander Golin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: