It seems as if either your system is broken or the file is not in ISO 8859-1 because that conversion *should* work and it does so on my Fedora 9:
Linux pen2.homeunix.net 2.6.26.6-79.fc9.x86_64 #1 SMP Fri Oct 17 14:20:33 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
$ iconv --version|head -1
iconv (GNU libc) 2.8
Are you sure that you do not get "caffA?" in place of "caff?"? That would suggest that the file is encoded using utf8, not an encoding of the ISO 8859 familiy.
Josef 'Jupp' Schugt
···
On Sat, 08 Nov 2008 23:10:12 +0100, Axel Etzold <AEtzold@gmx.de> wrote:
p Iconv.iconv("ascii//translit","iso-8859-1",s)[0] => "caff?"
On Sun, Nov 9, 2008 at 12:05 AM, Josef 'Jupp' Schugt <jupp@gmx.de> wrote:
On Sat, 08 Nov 2008 23:10:12 +0100, Axel Etzold <AEtzold@gmx.de> wrote:
p Iconv.iconv("ascii//translit","iso-8859-1",s)[0] => "caff?"
It seems as if either your system is broken or the file is not in ISO 8859-1
because that conversion *should* work and it does so on my Fedora 9:
Linux pen2.homeunix.net 2.6.26.6-79.fc9.x86_64 #1 SMP Fri Oct 17 14:20:33
EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
$ iconv --version|head -1
iconv (GNU libc) 2.8
Are you sure that you do not get "caffA?" in place of "caff?"? That would
suggest that the file is encoded using utf8, not an encoding of the ISO 8859
familiy.