Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP droping quotes within the file 1

Status
Not open for further replies.

dodge20

MIS
Jan 15, 2003
1,048
US
I am on unix sco 5 and when I try to ftp a file from my pc, the file on the unix server shows up without the quotes in the file. I am using WS_FTP Pro. The file is a .txt and I am using ascii to transfer it. Does anyone have any ideas why this would happen?



Dodge20
 
try sending it binary.....there are a number of rules that can be setup for ascii transfers, both on the client side and on the server side.
 
Binary does the same thing. Could it be something with Microsoft word? I am saving it as plain text with windows encoding. Should I use ASCII?

Dodge20
 
Have you looked at the content of your txt file in Notepad or Wordpad ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Yes I have looked at it in both Notepad and Wordpad. Seems fine there. I find this a little strange - the same thing also happens when i copy and paste the plain text from the document into a new file through 'vi'

Dodge20
 
I guess the quotes are « » instead of " "

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I think you are correct. How do I go about changing this?

Dodge20
 
I found how to change to straight quotes instead of curly quotes.

A Sure-Fire, No B.S. Way to Replace Straight Quotes with
Curly Quotes in WordPerfect
Have you ever noticed while using WordPerfect that it's difficult to successfully replace all of the straight quotes in a document with curly or smart quotes? It's usually not visible until after the document has been printed. There is a special way to correct this problem and make sure all straight quotes get replaced at the same time.
The technique described below will definitely get the job done.
1. Click <Tools>, <QuickCorrect>, select the <SmartQuotes> tab.
2. Check <Use double quotation marks as you type>, then click inside the <Open> box.
3. <Delete> any quotation marks in the box and press <CTRL+W> for the <Symbols> dialog box.
4. Search for <Typographic Symbols> in <Set>, then insert from the <Symbols> box the quotation marks that reads as <4,32> in the <Number> box. (We're going to be using Typographic Symbols for all of the quotes-double and single.)
5. Click <Insert and Close> to insert the quotations in the <Open> box.
6. Click inside the <Close> box, <delete> the quotation marks and press <CTRL+W> for the <Symbols> dialog box again. This time choose the quotes that read as <4,31> in the <Number> box.
7. Check <Use single quotation marks as you type>; click inside the <Open> box; <delete> the quotes in the box; press <CTRL+W> for the <Symbols> menu; choose the quote that reads as <4,29> in the <Number> box.
8. Click inside the <Close> box and insert the quote that reads as <4,28> in the <Number> box. Hit <OK> to exit.
9. Access the <Find and Replace> box. Press <F2> or <Edit>, <Find and Replace>, click the cursor inside the <Find> box and press <CTRL+W> for the <Symbols> dialog box.
10. Search for <ASCII> in <Set>, then choose the quotation mark in the <First row> that reads <0,34> in the <Number> box. Hit <Insert and Close>.
NOTE: The reason why we're using ASCII text is because the quotes contained in this set of fonts is straight quotes only.
11. In the <Replace> box, type a regular double quote from the keyboard, then hit <Replace All>. This will ensure that ALL straight quotes in the document will be turned into curly quotes.
12. Repeat steps 9 to 11 for <single quotes ( ' )> also, but choose the first quote in the <Second row> which reads <0,39>.

Change Straight Quotes (" ") to Curly Quotes (" ") in Word
Changing straight quotes to curly (or smart) quotes is easy as 1-2-3.
1. Click <Tools>, <AutoCorrect>, select the <AutoFormat> tab.
2. In the <Replace> section check the <"Straight Quotes" with "Smart Quotes"> box.
3. Now, select the <AutoFormat As You Type> tab and check <"Straight Quotes" with "Smart Quotes"> there also. Hit <OK> to exit.
NOTE: Both the <AutoFormat> and <AutoFormat As You Type> tab MUST have the <"Straight Quotes" with "Smart Quotes"> boxes checked in order for this procedure to work.
4. Open the <Find and Replace> box. Press <CTRL+H> or <Edit>, <Find and Replace>, click the cursor inside the <Find> box and type a <double quote ( " )> from the keyboard. Repeat for <Replace>.
5. Hit <Replace All> twice to make sure all straight quotes in the document have been replaced with curly quotes.
6. Repeat steps 4 and 5 for <single straight quotes ( ' )>.
If you ever need to use the straight quotes for anything, just go back into the <AutoCorrect> dialog box and uncheck the <"Straight Quotes" with "Smart Quotes"> boxes.




A Sure-Fire, No B.S. Way to Replace Straight Quotes with
Curly Quotes in WordPerfect
Have you ever noticed while using WordPerfect that it's difficult to successfully replace all of the straight quotes in a document with curly or smart quotes? It's usually not visible until after the document has been printed. There is a special way to correct this problem and make sure all straight quotes get replaced at the same time.
The technique described below will definitely get the job done.
1. Click <Tools>, <QuickCorrect>, select the <SmartQuotes> tab.
2. Check <Use double quotation marks as you type>, then click inside the <Open> box.
3. <Delete> any quotation marks in the box and press <CTRL+W> for the <Symbols> dialog box.
4. Search for <Typographic Symbols> in <Set>, then insert from the <Symbols> box the quotation marks that reads as <4,32> in the <Number> box. (We're going to be using Typographic Symbols for all of the quotes-double and single.)
5. Click <Insert and Close> to insert the quotations in the <Open> box.
6. Click inside the <Close> box, <delete> the quotation marks and press <CTRL+W> for the <Symbols> dialog box again. This time choose the quotes that read as <4,31> in the <Number> box.
7. Check <Use single quotation marks as you type>; click inside the <Open> box; <delete> the quotes in the box; press <CTRL+W> for the <Symbols> menu; choose the quote that reads as <4,29> in the <Number> box.
8. Click inside the <Close> box and insert the quote that reads as <4,28> in the <Number> box. Hit <OK> to exit.
9. Access the <Find and Replace> box. Press <F2> or <Edit>, <Find and Replace>, click the cursor inside the <Find> box and press <CTRL+W> for the <Symbols> dialog box.
10. Search for <ASCII> in <Set>, then choose the quotation mark in the <First row> that reads <0,34> in the <Number> box. Hit <Insert and Close>.
NOTE: The reason why we're using ASCII text is because the quotes contained in this set of fonts is straight quotes only.
11. In the <Replace> box, type a regular double quote from the keyboard, then hit <Replace All>. This will ensure that ALL straight quotes in the document will be turned into curly quotes.
12. Repeat steps 9 to 11 for <single quotes ( ' )> also, but choose the first quote in the <Second row> which reads <0,39>.

Change Straight Quotes (" ") to Curly Quotes (" ") in Word
Changing straight quotes to curly (or smart) quotes is easy as 1-2-3.
1. Click <Tools>, <AutoCorrect>, select the <AutoFormat> tab.
2. In the <Replace> section check the <"Straight Quotes" with "Smart Quotes"> box.
3. Now, select the <AutoFormat As You Type> tab and check <"Straight Quotes" with "Smart Quotes"> there also. Hit <OK> to exit.
NOTE: Both the <AutoFormat> and <AutoFormat As You Type> tab MUST have the <"Straight Quotes" with "Smart Quotes"> boxes checked in order for this procedure to work.
4. Open the <Find and Replace> box. Press <CTRL+H> or <Edit>, <Find and Replace>, click the cursor inside the <Find> box and type a <double quote ( " )> from the keyboard. Repeat for <Replace>.
5. Hit <Replace All> twice to make sure all straight quotes in the document have been replaced with curly quotes.
6. Repeat steps 4 and 5 for <single straight quotes ( ' )>.
If you ever need to use the straight quotes for anything, just go back into the <AutoCorrect> dialog box and uncheck the <"Straight Quotes" with "Smart Quotes"> boxes.


Dodge20
 
Well I screwed up that post. Oh well thanks phv.

Dodge20
 
After the ftp:
tr '\253\273' '""' < gotFile.txt > newFile.txt

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top