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

Force unicode on Strings

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6.3
    • 1.4.0
    • 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. action_names_rus.properties
          0.1 kB
        2. Gemfile
          0.1 kB
        3. ruby-320-test.rb
          0.3 kB

        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: