Přejít na menu

File encoding conversion

Správa článků

Vyhledávání Vyhledávání
17.3.2013 00:50
,
Počet přečtení: 622
How to convert single file or the whole directory of files using iconv.

Convert the single file

iconv -f CP1250 -t UTF8//TRANSLIT -o output-file.txt input-file.txt

List all encodings supported by iconv: iconv -l

Convert all files in the directory

find dir/ -type f -exec bash -c 'mv "$1" "$(iconv -f UTF8 -t ASCII//TRANSLIT <<< $1)"' -- {} \;

Vytvořil 17. března 2013 v 00:51:54 mira. Upravováno 3x, naposledy 8. listopadu 2016 v 18:29:57, mira


Diskuze ke článku

Vložení nového komentáře
*
*
*