Quote:
Originally Posted by jim mcnamara
There is a file, usually /usr/lib/nls/iconv/config.iconv, that lists all of the possible (allowable conversions)
On my box
Code:
iconv -f utf8 -t iso89 oldfile > newfile
does the job. You need to find config.iconv, then read it to find what your commands are.
|
Hello. I've been looking for config.iconv, but I didn't find it. So, I put in the terminal locate iconv and the result was the following:
/home/marta/LaTex/texmf-dist/source/fontinst/base/ficonv.dtx
/usr/bin/iconv
/usr/bin/piconv
/usr/include/iconv.h
/usr/include/gtk-2.0/gtk/gtkiconview.h
/usr/lib/kde4/share/kde4/apps/kdewidgets/pics/k3iconview.png
/usr/lib/ruby/1.8/i486-linux/iconv.so
/usr/lib/ruby/1.8/xsd/iconvcharset.rb
/usr/sbin/iconvconfig
/usr/share/apps/kdewidgets/pics/kiconview.png
/usr/share/doc/libtext-iconv-perl
/usr/share/doc/cups-pdf/examples/pstitleiconv-0.2
/usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/ChangeLog
/usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/README
/usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/pstitleiconv
/usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/pstitleiconv.conf
/usr/share/doc/libtext-iconv-perl/changelog.Debian.gz
/usr/share/doc/libtext-iconv-perl/copyright
/usr/share/man/man1/iconv.1.gz
/usr/share/man/man1/piconv.1.gz
/usr/share/man/man8/iconvconfig.8.gz
/var/lib/dpkg/info/libtext-iconv-perl.list
/var/lib/dpkg/info/libtext-iconv-perl.md5sums
In the pstitleiconv.conf archive I found that:
# configuration file for pstitleiconv cups filter
# this file is interpreted by perl
# $FROMCODE
# charset to convert from
# Default:
# ascii
#$FROMCODE = "ascii"
# $TOCODE
# charset to convert to
# Default:
# utf-8
#$TOCODE = "utf-8"
So, I suppose I just can convert archives from ascii to utf8. However, I thought the program was much more powerful. ??? Moreover, What I need is exactly the opposite operation, I mean, convert from UTF-8 to ASCII.
What can I do? I suspect I've benn commiting a mistake (or maybe several mistakes), but I don't know whichones. Any ideas?
Thank's in advanced.