Simos Xenitellis <[EMAIL PROTECTED]> さんは書きました: > Hi All, > The ZIP format (http://www.info-zip.org/pub/infozip/doc/) appears not > to specify the text encoding > of the filenames of the compressed files, which causes a problem with > unzip utilities when they try > to uncompress .ZIP files that include filenames in non-UTF-8 encodings. > > Such ZIP programs are "unzip", "file-roller" (GNOME, at > http://fileroller.sourceforge.net/), "ark" (KDE) > cannot guess the encoding of the filenames and automatically convert > to UTF-8. > > To solve this problem, a "workaround" is to be able to detect the > encoding and automagically convert to UTF-8. > > Is there a library or sample program that can do such a "encoding > detection" based on short strings of unknown encoding > (or to choose from encodings based on a smaller list than "iconv --list")?
I think it is better to use the filename-encoding-conversion tool "convmv" to fix the encoding *after* unpacking the archive. See: http://j3e.de/linux/convmv/ ("convmv" is already included in SuSE Linux). -- Mike FABIAN <[EMAIL PROTECTED]> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。 -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
