Correct, Bernard.
Here's the deal - these Excel, or Tab-delimited files are being uploaded to a
website for metadata creation - the extra "square" characters cause the site
to error. I don't know what the back end is, or how the data is captured, but
those squares are the problem.
I did discover yesterday that saving as Text (Windows) works - as you stated.
I do find it odd though that a Tab-delimited save adds this extra character
only on the Mac. It happens in Office X and Office 2004>
Thanks again - I'd like to know why this does this.
When saving to tab text in Excel Mac, the standard Mac end-of-line character
- namely the carriage return, ASCII 13 - is used. When this text file is
read on Windows, these characters do NOT represent end-of-line characters:
on Windows, text files (but not Word documents) require the combined CR LF
(ASCII 13 & ASCII 10) character sequence to demarcate lines (paragraphs). So
the single ASCII 13 character is just a "non-printing" character. The square
(rectangle) how some non-printing characters appear on screen in a text
editor app such as Notepad on Windows. If you tried printing the text file
on Windows, you wouldn't see the squares nor would you see separate lines:
all the text would just run on in one long line. Your server is expecting
separate lines, and will cough on this immense single line with dozens of @
characters.
When you save the text file as Text (Windows) in Excel Mac, the LF (ASCII
10) character is appended to each CR (ASCII 13) character. If you then open
this file in a non-Cocoa traditional Mac app such as Tex-Edit Plus, you will
now see rectangles at the beginning of each line starting with the second
line. Of course on the Mac, the CR characters still make separate paragraphs
(lines), but each new line now begins with a non-printing character (ASCII
10) displayed as a rectangle. If you print the Tex-Edit document, you won't
see the rectangles. If you open the Windows file in TextEdit, you won't see
the rectangles since TextEdit is a Unix app that uses only LF (ASCII 10)
characters itself, and is "cosmopolitan": it will accept and display any of
LF, CR, CRLF as line-ends and not show any squares.
Nevertheless, both the CR and LF characters remain in the file, and that's
what your Windows uploading app wants and expects. It doesn't know what to
do with the "single paragraph" you're handing it when you give it a
Mac-formatted text file.
If you ever end up with these Mac text files on Windows, try opening them in
Word, saving as Word documents, re-opening in Word and saving as Text Only.
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <
http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <
http://macscripter.net/scriptbuilders/>
Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.
PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.