We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7fde22 commit a83fb32Copy full SHA for a83fb32
lib/net/ber.rb
@@ -296,9 +296,8 @@ def to_arr
296
class Net::BER::BerIdentifiedString < String
297
attr_accessor :ber_identifier
298
def initialize args
299
+ args.force_encoding('UTF-8') if args.respond_to(:force_encoding)
300
super args
- # LDAP uses UTF-8 encoded strings
301
- self.encode('UTF-8') if self.respond_to?(:encoding) rescue self
302
end
303
304
0 commit comments