tramp-find-file-name-coding-system-alist

tramp-find-file-name-coding-system-alist is a compiled Lisp function in `tramp.el'.

(tramp-find-file-name-coding-system-alist FILENAME TMPNAME)

Like `find-operation-coding-system' for Tramp filenames.
Tramp's `insert-file-contents' and `write-region' work over
temporary file names. If `file-coding-system-alist' contains an
expression, which matches more than the file name suffix, the
coding system might not be determined. This function repairs it.