Next: , Previous: Encoding and Decoding Text, Up: Coding Systems


67.6.6 Detection of Textual Encoding

— Function: coding-category-list

This function returns a list of all recognized coding categories.

— Function: set-coding-priority-list list

This function changes the priority order of the coding categories. list should be a list of coding categories, in descending order of priority. Unspecified coding categories will be lower in priority than all specified ones, in the same relative order they were in previously.

— Function: coding-priority-list

This function returns a list of coding categories in descending order of priority.

— Function: set-coding-category-system coding-category coding-system

This function changes the coding system associated with a coding category.

— Function: coding-category-system coding-category

This function returns the coding system associated with a coding category.

— Function: detect-coding-region start end &optional buffer

This function detects coding system of the text in the region between start and end. Returned value is a list of possible coding systems ordered by priority. If only ASCII characters are found, it returns autodetect or one of its subsidiary coding systems according to a detected end-of-line type. Optional arg buffer defaults to the current buffer.