Method: Sass::CSS#source_encoding

Defined in:
lib/sass/css.rb

#source_encodingEncoding?

Returns the original encoding of the document, or nil under Ruby 1.8.

Returns:

  • (Encoding, nil)

Raises:

  • (Encoding::UndefinedConversionError)

    if the source encoding cannot be converted to UTF-8

  • (ArgumentError)

    if the document uses an unknown encoding with @charset



59
60
61
62
# File 'lib/sass/css.rb', line 59

def source_encoding
  check_encoding!
  @original_encoding
end