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

Force unicode on Strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.6.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: