Sha256: c00a8cc6a1a69a0464819fa6292512267d0c70f764b885611661ca761ff94533

Contents?: true

Size: 199 Bytes

Versions: 18

Compression:

Stored size: 199 Bytes

Contents

# encoding: utf-8

module EncodingHelpers
  def win1252_string(str)
    str.force_encoding(Encoding::Windows_1252)
  end

  def bin_string(str)
    str.force_encoding(Encoding::ASCII_8BIT)
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
prawn-2.1.0 spec/extensions/encoding_helpers.rb
prawn-git-2.0.1 spec/extensions/encoding_helpers.rb
prawn-table-0.2.2 spec/extensions/encoding_helpers.rb
prawn-2.0.2 spec/extensions/encoding_helpers.rb
prawn-2.0.1 spec/extensions/encoding_helpers.rb
prawn-2.0.0 spec/extensions/encoding_helpers.rb
prawn-table-0.2.1 spec/extensions/encoding_helpers.rb
prawn-table-0.2.0 spec/extensions/encoding_helpers.rb
prawn-1.3.0 spec/extensions/encoding_helpers.rb
prawn-table-0.1.2 spec/extensions/encoding_helpers.rb
prawn-table-0.1.1 spec/extensions/encoding_helpers.rb
prawn-table-0.1.0 spec/extensions/encoding_helpers.rb
prawn-1.2.1 spec/extensions/encoding_helpers.rb
prawn-table-0.0.4 spec/extensions/encoding_helpers.rb
prawn-table-0.0.3 spec/extensions/encoding_helpers.rb
prawn-table-0.0.2 spec/extensions/encoding_helpers.rb
prawn-table-0.0.1 spec/extensions/encoding_helpers.rb
prawn-1.1.0 spec/extensions/encoding_helpers.rb