method

binary_to_string

binary_to_string(value)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb, line 18
        def binary_to_string(value)
          if value.respond_to?(:force_encoding) && value.encoding != Encoding::ASCII_8BIT
            value = value.force_encoding(Encoding::ASCII_8BIT)
          end

          value.gsub(/%00|%25/) do |b|
            case b
              when "%00" then "\00""
              when "%25" then "%"
            end
          end
        end