Flowdock
method

encode_filename

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: ActionDispatch::Http::UploadedFile
encode_filename(filename) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/upload.rb, line 24
      def encode_filename(filename)
        # Encode the filename in the utf8 encoding, unless it is nil or we're in 1.8
        if "ruby".encoding_aware? && filename
          filename.force_encoding("UTF-8").encode!
        else
          filename
        end
      end
Register or log in to add new notes.