If you enable “Refer to encoding declaration in document” in the Format preferences pane, in-document encoding declarations, such as “encoding=” or “@charset,” will take precedence when CotEditor detects the text encoding.
=> Using encoding declarations for auto-detection