method

tidy_byte

rails latest stable - Class: ActiveSupport::Multibyte::Unicode

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

tidy_byte(byte)
private

No documentation available.

# File activesupport/lib/active_support/multibyte/unicode.rb, line 386
      def tidy_byte(byte)
        if byte < 160
          [database.cp1252[byte] || byte].pack("U").unpack("C*")
        elsif byte < 192
          [194, byte]
        else
          [195, byte - 64]
        end
      end