Sha256: 78de3a205110da65e412a220a7fcacacd6b5d9191c2ca4284983b23746a854a7
Contents?: true
Size: 281 Bytes
Versions: 17
Compression:
Stored size: 281 Bytes
Contents
# frozen_string_literal: true class ThinkingSphinx::UTF8 attr_reader :string def self.encode(string) new(string).encode end def initialize(string) @string = string end def encode string.encode!('ISO-8859-1') string.force_encoding('UTF-8') end end
Version data entries
17 entries across 17 versions & 1 rubygems