Hebrew converted into jibrish while put command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Hebrew converted into jibrish while put command
# 8  
Old 05-15-2018
Hi Friends ,
So i've tried using the iconv command in order to translate my file.
I've produced 3 diffrent conversion to check which one is good .
problem : the iconv command do not convert all the file . the new files is produced with 4 rows only .
my command :
Code:
#!/bin/bash
iconv -f utf-16 -t utf-8 file1 > file2 // this file contains no rows 
iconv -f utf-16 -t windows-1252 file1 > file3  // this file contain only 4 rows

what seems to be the problem ?
Thanks In Advanced ,
Naama


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 05-15-2018 at 10:19 AM.. Reason: Added CODE tags.
# 9  
Old 05-15-2018
Post a hexdump of (a representative subset of) the respective files, before and after converting, and before and after ftp transfer. What's the output of the file command applied to either?
# 10  
Old 05-15-2018
FWIW - ISO 8859-8 (Hebrew) is the ISO standard - UTF8 format. Not UTF16
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hebrew character convert error while put thru ftp

Hi all , i have a script which cp xml files from linux to other server thru ftp my xml file contains charcters in hebrew . my script is #!/bin/bash HOST="....." USER="....." PASSWORD="..." cd /usr2/app/naama/ filelist='find . -mmin -60 | tail -n +2 | awk -F "/" '{print $2}' | grep xml'... (3 Replies)
Discussion started by: naamas03
3 Replies

2. Shell Programming and Scripting

Shell script variable $1 used with put command

I have the following script used, i am new to shell scripting. tryign to understand. in the put $BASE_FOLDER/$base_name holds which path. What does it mean by $1 second path in put command is it constructing this path: /user/hive/warehouse/stage.db/$1 what is $1 holding in above path. ... (2 Replies)
Discussion started by: cplusplus1
2 Replies

3. Linux

Not able to put ls -lR command in background

Hi All, i am trying to put ls -lRt command to run in the background but it fails. i continue to get output on screen and didnt get the command prompt right after i put the command in background. command i am using is ls -lRt & i am using bash. Can someone let me know how to... (6 Replies)
Discussion started by: omkar.jadhav
6 Replies

4. Shell Programming and Scripting

How to put output of one command into a variable

Hi, Let say I have these 3 files (state, list and myscript). I want to be able get the sample output like below when I run myscript. Any one know how to fix the code? TIA. ~~~~~~~~~~~~~~~ > cat /home/state CA > cat /home/list CA 100 50 20 AUS 120 61 10 > cat myscript... (6 Replies)
Discussion started by: joker_789us
6 Replies

5. Shell Programming and Scripting

Status of FTP Put command

Can i capture the status of put command after i ftp a file? (4 Replies)
Discussion started by: aixjadoo
4 Replies

6. UNIX for Dummies Questions & Answers

FTP put command problem

Hello,I am trying to put something on the ftp server using the put command. Whenever I try, I get this error: ftp> put SIMS.war local: SIMS.war remote: SIMS.war 200 PORT command successful 553 Can't open that file: Permission denied I have set rwx for all on that file and I still am... (3 Replies)
Discussion started by: mojoman
3 Replies

7. UNIX for Dummies Questions & Answers

put command issues with a tftp server

From a remote client, I'm trying to create a timestamped directory and put a file inside the directory. The directory and the file are not present already inside the tftp server. If I need to put a file inside a tftp server, which is not existing already what should I need to do.. I face errors... (9 Replies)
Discussion started by: Amudha
9 Replies

8. Shell Programming and Scripting

Grep command is not working when put into cron

Hi, I worte a script which runs perfect when i execute it manually. But when i scheduled into cron the grep command alone is not working. the sample script, /usr/bin/grep FTP $subfile > /tmp/tfsrec.dat tfs=`echo $?` if then echo "FTP FOUND" else echo "FTP NOT FOUND" Where... (5 Replies)
Discussion started by: thiru_cs
5 Replies

9. HP-UX

where to put autorstart command?

hi everyone, I want to run some command automatically when the OS boot. In Linux, I found that we just put it into /etc/rc.local file; but I don't know where to put it in HP-UX system. please, help me........ thanks very much, :) (2 Replies)
Discussion started by: tataxin
2 Replies

10. UNIX for Advanced & Expert Users

hebrew font for ie5 in sun solaris

somebody know how to install Hebrew font for ie5 for sun solaris and from were (1 Reply)
Discussion started by: goldfelda
1 Replies
Login or Register to Ask a Question