macOS: How to show a file's character encodingTo show a file's character encoding on Mac/macOS, use the file command with the -I option.