07-23-2012
LFTP corrupts special characters
Hi,
I am trying to use lftp to mirror two directories: one on my windows pc and one on a zOS system. One file within the local directory has special characters for different languages, e.g. pou¶ít (czech). When I run lftp, the characters are incorrect.
I am transferring in ASCII mode, and the target charset is IBM-1047.
I have tried encoding the local file in UTF-8, and ISO-8859-1. Neither of which seem to work.
ISO-8859-1 changes pou¶ít to pou6mt
UTF-8 changes pou¶ít to pouB6C-t
I have also tried "set ftp:charset" but i am not sure which charset to use since IBM-1047 is "not supported" by lftp.
Can anyone help or point me in the right direction?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have one file which is named ^? ( the DEL character )
I'd like to know how to rename or copy the file by using its i-node number
TYIA (2 Replies)
Discussion started by: nawnaw
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a file which has special characters. I can't see them when I "vi" the file. But I am sure there are some special un seen characters. How can I see them?
Please help.
Thx (6 Replies)
Discussion started by: jingi1234
6 Replies
3. UNIX for Dummies Questions & Answers
Hi folks
I am issuing the following command:
grep "" *
Looking for the characters \/:*?"<>|#+%& within all files in a directory, but the command fails being unhappy with pipe:
ksh: 0403-057 Syntax error: `|' is not expected.
How do I force the command to take the pipe | ? I guess... (2 Replies)
Discussion started by: daveaasmith
2 Replies
4. Shell Programming and Scripting
When I open a file in vi, I see the following characters:
\302\240
Can someone explain what these characters mean. Is it ASCII format? I need to trim those characters from a file.
I am doing the following:
tr -d '\302\240'
---------- Post updated at 08:35 PM ---------- Previous... (1 Reply)
Discussion started by: sid1982
1 Replies
5. UNIX for Advanced & Expert Users
Please let me know what is lftp options combination to wait and download a file from target as soon as its gets created. I tried with different options but not able to get it working as I need
any help would be appreciated (4 Replies)
Discussion started by: bmkux
4 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I was wondering how can i see the special characters like \t, \n or anything else in a file by using Nano or any other linux command like less, more etc (6 Replies)
Discussion started by: gvj
6 Replies
7. Shell Programming and Scripting
Hey guys,
I'm trying to replace "]Facebook" from the text
but
sed 's/]Facebook/Johan/g'
is not working
could you please help me with that? (6 Replies)
Discussion started by: Johanni
6 Replies
8. Shell Programming and Scripting
i need to replace the any special characters with escape characters like below.
test!=123-> test\!\=123
!@#$%^&*()-= to be replaced by
\!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies
9. Homework & Coursework Questions
I am learning from the class how to protect the special characters and the script that I wrote here does not work when I am trying to pick up a single quote. It would complaint about parentheses problem. Please, someone could enlighten me.
Thanks in advance,
Scopiop
Input file
Hi, * ?... (2 Replies)
Discussion started by: scopiop
2 Replies
10. Shell Programming and Scripting
We have lftp command inside shell file. which is intern calling .cfg file for transferring the file from one server to other.
Below command to not working.
lftp -e "set net:max-retries 1; set net:reconnect-interval-base 1; put -E -O /destinationdir/inbox/ /sourcedir/test.txt; bye" -u... (4 Replies)
Discussion started by: johnsnow
4 Replies
LEARN ABOUT PHP
xml_parser_create_ns
XML_PARSER_CREATE_NS(3) 1 XML_PARSER_CREATE_NS(3)
xml_parser_create_ns - Create an XML parser with namespace support
SYNOPSIS
resource xml_parser_create_ns ([string $encoding], [string $separator = ":"])
DESCRIPTION
xml_parser_create_ns(3) creates a new XML parser with XML namespace support and returns a resource handle referencing it to be used by the
other XML functions.
PARAMETERS
o $encoding
- The optional $encoding specifies the character encoding for the input/output in PHP 4. Starting from PHP 5, the input encoding
is automatically detected, so that the $encoding parameter specifies only the output encoding. In PHP 4, the default output encod-
ing is the same as the input charset. In PHP 5.0.0 and 5.0.1, the default output charset is ISO-8859-1, while in PHP 5.0.2 and
upper is UTF-8. The supported encodings are ISO-8859-1, UTF-8 and US-ASCII.
o $separator
- With a namespace aware parser tag parameters passed to the various handler functions will consist of namespace and tag name sep-
arated by the string specified in $separator.
RETURN VALUES
Returns a resource handle for the new XML parser.
SEE ALSO
xml_parser_create(3), xml_parser_free(3).
PHP Documentation Group XML_PARSER_CREATE_NS(3)