But other programs may work, because these file formats can be used with Microsoft Windows as well as portable applications that may run on Windows. In either case, the lack of BOM will (depending on the version of file) confuse it. If the file is UTF-16, your terminal would display that using head because most of the characters would be ASCII (or even Latin-1), making the "other" byte of the UTF-16 characters a null. The same applies to UTF-8 (and head would display that since your terminal may be set to UTF-8 encoding, and it would not care about a BOM). It could be UTF-16 for example, without a byte-encoding-mark (BOM). The file utility doesn't give useful information when it doesn't recognize the file format. iconv needs an encoding name to do its job. "binary" isn't an encoding (character-set name). What does it mean, Binary means non-readable but how head command or notepad can read the data. Try iconv -help' or iconv -usage' for more information.Ĭan anyone please help me to understand is it possible to convert or not, I can able to see the data using head command. Iconv: conversion from binary' is not supported When I try to convert the file from binary to UTF-8 it throws error. Output : application/octet-stream charset=binary I have used the below command to check characterset. I have a CSV file which is in binary character set but I have to convert to UTF-8 to process in HDFS (Hadoop).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |