Method: Sass::CSS#source_encoding

Defined in:
lib/sass/css.rb

#source_encodingEncoding?

Returns the original encoding of the document.

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



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

def source_encoding
  check_encoding!
  @original_encoding
end