Meta
Categories
Category Archives: Uncategorized
Unix: Check File is UTF-8 Encoding or Not
iconv -f utf-8 -t ucs-4 < myfile >/dev/null # No error means utf-8 encoding # Error means NOT utf-8 encoding Example $ iconv -f utf-8 -t ucs-4 < utf8_file >/dev/null $ iconv -f utf-8 -t ucs-4 < non_utf8_file >/dev/null iconv: … Continue reading
Posted in Uncategorized
Comments Off on Unix: Check File is UTF-8 Encoding or Not