Operating System - HP-UX
1837090 Members
2236 Online
110112 Solutions
New Discussion

howto convert a file to ISO-88591 using iconv ?

 
SOLVED
Go to solution
'chris'
Super Advisor

howto convert a file to ISO-88591 using iconv ?

hi

is it possible and how it works to convert a text file to ISO-88591 using iconv command from shell Konsole ?

for example to convert to utf-8:

# iconv -f latin1 -t utf-8

kind regards
chris


3 REPLIES 3
Jdamian
Respected Contributor
Solution

Re: howto convert a file to ISO-88591 using iconv ?

iconv -f utf-8 -t iso8859_1 file1 > file2

Read man pages of iconv command and check /usr/lib/nls/iconv/config.iconv for details.
'chris'
Super Advisor

Re: howto convert a file to ISO-88591 using iconv ?

hi

but I get this ERROR message:

# iconv -f utf-8 -t iso8859_1 test.txt > test2.txt
iconv: conversion to `iso8859_1' is not supported

greetings
chris

'chris'
Super Advisor

Re: howto convert a file to ISO-88591 using iconv ?

I don't know if is it correct or not, but this command works without error:

# iconv -f latin1 -t ISO8859-1 test.txt > test2.txt

greetings
chris