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

Force unicode on Strings

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.3
    • Affects Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mongo 2.0.0, Win32

      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)

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

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

              Created:
              Updated:
              Resolved: