    # File lib/yard/templates/helpers/html_helper.rb, line 510
          def charset
            if @file && RUBY19
              lang = @file.contents.encoding.to_s
            else
              return 'utf-8' unless RUBY19 || lang = ENV['LANG']
              if RUBY19
                lang = ::Encoding.default_external.name.downcase
              else
                lang = lang.downcase.split('.').last
              end
            end
            case lang
            when "ascii-8bit", "us-ascii", "ascii-7bit"; 'iso-8859-1'
            when "utf8"; 'utf-8'
            else; lang
            end
          end