LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Iconv error : illegal input sequence at position (https://www.linuxquestions.org/questions/linux-newbie-8/iconv-error-illegal-input-sequence-at-position-678244/)

ninjakdb 10-22-2008 03:51 AM

Iconv error : illegal input sequence at position
 
Hi

I am having problems converting a file from an Oracle system using code page UTF-8 via FTP to Linux code page iso-8859-1
The error it finds is where a character displayed as â is found, the actual character is a ' as in foot, this is entered on a french database so wonder if this is a special character that is causing it or is there a way of converting that character prior to the full convertion ?

Thanks

ninjakdb 10-22-2008 06:04 AM

Answer found
 
Use iconv -f UTF-8 -t ISO-8859-1 //TRANSLIT

postcd 11-17-2013 07:45 AM

Im trying to achieve the same doing command:

iconv -f UTF-8 -t ISO-8859-1//TRANSLIT < in > out
iconv: illegal input sequence at position 10

my in file contains only:

ĹŻĹľete vyĹ.adit pĹ.Ă*spÄ

any idea please?

John VV 11-17-2013 06:45 PM

postcd and you are using a OLD Oracle Operating system from 2008
( a Oracle rebuild of RHEL 4 or 5 )

this thread is 5 years old

there were missing fonts

use a new operating system

postcd 11-18-2013 12:50 PM

Please is there any way on how to update missing fonts on CentOS without reinstall, i have just virtual private server and alot of configurations to do any major reinstallation just because of this file conversion. WHich command, can you point to the details / url?

John VV 11-18-2013 01:27 PM

CentOS and Oracle linux are both rebuilds of RHEL - but NOT the same operating system

WHAT version of cent are you using ?
the ONLY supported versions are CentOS 5.9 and 6.4
-- soon to be 5.10 and 6.5

have a look at the cent base repo
Code:

su -
yum search font

that will give you a list
and have a look at the language software groups
Code:

su -
yum grouplist

mind you you can only install software on a supported version of cent
Code:

su -
yum install ??????
-------- or for a group ----------
yum groupinstall "Name of Group"

aslo ftp now uses BY DEFAULT binary and NOT ascii
so there is no need to convert something to use ftp

the FIRST post is about using text and ftp on a very OLD operating system

so for a modern OS
this is not needed
just use the DEFAULT ftp settings

postcd 11-19-2013 06:36 AM

Thank you for valuable info., "cat /etc/issue":
CentOS release 5.10 (Final)
uname -r
2.6.18-348.3.1.el5.028stab106.2

so i asume "Iconv error : illegal input sequence at position" is because of some unsupported character and as you say it wont be fixed by installing any fonts via yum on my OS version.

I tried initial command: iconv -f UTF-8 -t ISO-8859-1//TRANSLIT myfile - it went further, but still returned:

Quote:

LOCK TABLES `cache_page` WRITE;
/*!40000 ALTER TABLE `cache_page` DISABLE KEYS */;
INSERT INTO `cache_page` VALUES ('http://website.com/?q=guestbook/0+%5bplm=0%5d+get+http://website.com/?q=guestbook/0+%5...d%5b0,0,385%5d','iconv: illegal input sequence at position 512163875
I watched yum list font* but not sure if i need any of these, "8859-1" is not within the packages. 8859-2 was so i isntalled and tried conversion for it, but same error.


I tried it both at CentOS 5.1, 6.4 and Ubuntu 10.04.1 LTS - same error, please idea?

John VV 11-19-2013 12:41 PM

just use the current binary ftp
and not the ascii ftp

this is a thread about ftp after all

Centos 5.1 and ubuntu 10 are both unsupported Operating systems

postcd 11-19-2013 02:11 PM

Please share with me and future readers how is called the feature which allows the conversion we want to do? I mean you telling that CentOS 5.1 and Ubunntu 10 is unsupported. What is the feature name, software name which allows the conversion we want to do / where to see the list of supported OSes?


All times are GMT -5. The time now is 05:38 AM.