Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-340

Force unicode on Strings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.4.0
    • 1.6.3
    • None
    • None
    • Mongo 2.0.0, Win32

    Description

      Mongo fails with exception: BSONElement: bad type -30 code:10320 0ms

      when in ruby drivers string is put into {} without force_encoding(UTF-8) and when this string contains, for example, cyrillic charactes.

      suggesting some checking on ruby driver side. (when serializing to BSON)

      Attachments

        1. ruby-320-test.rb
          0.3 kB
        2. Gemfile
          0.1 kB
        3. action_names_rus.properties
          0.1 kB

        Issue Links

          Activity

            People

              tyler@10gen.com Tyler Brock
              lightket Yan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: