LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iconv encoding from windows to linux (https://www.linuxquestions.org/questions/linux-newbie-8/iconv-encoding-from-windows-to-linux-4175415218/)

Perronegro 07-06-2012 08:29 AM

iconv encoding from windows to linux
 
Hey Guys,

I have a windows text file with call data i'm trying to move across to my linux box for processing, problem is when i run iconv -f UTF-16 -t UTF8 it seems to wrap the text which and makes it impossible to process the file through our linux Telephone Management System. My question is what can i do to prevent the text wrap, should i choose another encoding?

Regards

Slackyman 07-07-2012 03:03 AM

Mayabe you can use dos2unix since I think it's a problem regarding lline-feed and carriage-return.

Perronegro 07-08-2012 01:46 PM

tried the dos2unix, didn't work though, but while i was playing alittle more i realised it's the powershell script thats extracting it to the linux box that's screwing up the original format .. Do'h so i'm going to work on the powershell output, that should be simpler.


All times are GMT -5. The time now is 06:39 AM.