Newby help

Joined
May 27, 2016
Messages
6
Reaction score
0
Points
1
New to iMac... Just purchased one...
Background:
) My 7 year old PC (64 bit, Win7) lost it's network capability..
) Tried all avenues to regen the network to no avail. Both wi-fi and RJ-45 do not work..
) No exact replacement motherboards available...
) New motherboards will use Win10 but I'm through with Windows......

) So, my answer was to get a new IMAC. I have an extensive Unix background and presumed the familiar field, if needed, would be great...
) Had issues getting the large amount of PC backup data available to the IMAC but that's not the problem right now...

) I have to maintain a lot of web files......

) Tried a simple update using the text editor on the IMAC....
)) the file was transferred to the website using the recommended FTP app...
))) When you view the file on a browser, it errors out because it has alien characters in the 6 lines of text.....
)))) try http://www.studebaker-info.org/aoai/aoai174class.html and view the 'page source'.....

....calling the Apple Help line wasn't productive (not unexpected)
...Apple's Forums aren't really that...

Does anyone have a workaround for this??

Thanks
 
Joined
Nov 28, 2007
Messages
25,564
Reaction score
486
Points
83
Location
Blue Mountains NSW Australia
Your Mac's Specs
Silver M1 iMac 512/16/8/8 macOS 11.6
Apple's Forums really aren't that what? There are no Apple forums that Apple controls or even oversees.

Now how/what did you update as this text editor? Sounds like a 3rd party app you should be chasing nthe developer about. Aple's Text Edit is tied to the operating system.
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
There are no Apple forums that Apple controls or even oversees.

Apple maintains control over the "Apple Discussions Forums" which is what he may be referring to.
 
OP
R
Joined
May 27, 2016
Messages
6
Reaction score
0
Points
1
Apple's Forums really aren't that what? There are no Apple forums that Apple controls or even oversees.

Now how/what did you update as this text editor?


Hi, Thanks for your reply..... I just purchased the IMAC a week ago. Tried the Apple Help line this AM and the "techy" had absolutely no idea what I was talking about.

The Apple Forums or "Look it up yourself" sites have no remarks regarding this, although some things can be found with a Google search. It seemed that File Zilla was the go-to 3rd party software to FTP and it works pretty well. There is no intuitive means to assure the transfer was ascii vs binary however.

Basically right now trying to create a work flow similar to what I had. First thing was to create a folder on desktop for updates. Used FileZilla to ftp to my site and download files ( ascii, html)

Used Apples Text/edit, after adjusting preferences to accommodate the "html' ext.

seemingly worked ok, saved it back to the folder and ftp'd it back to the site..

When it's opened, the page shows blank in the browser..... looking at the page source, there are European characters in front and back of an image declaration, which obviously negate the file name..

Went back to an old PC and did the exact same function with the same file and it worked fine.. This is a simple 6 line file to 'test' the waters.

That's what I have...
 
OP
R
Joined
May 27, 2016
Messages
6
Reaction score
0
Points
1
What application were you using on the PC?
Did you look at/open the file (from the PC) directly on the Mac to see what it contains?
Try using a free plain text editor - I use Text Wrangler.
http://www.barebones.com/products/textwrangler/download.html

Hello,
I've been working on the issue this AM. There are a few more interations that have to be done before settling on anything. I DID download Wrangler and tried it, but it did the same thing, even after recreating the same simple file, i.e.
<html>
<body>
<img src="filename1.jpeg"><P>
<img src="filename2.jpeg><P>
</body>
</html>
Earlier, this file would show a cyrillic character and a Euro symbol prepended to the filename and the same appended to the jpeg extension... ( I've already removed the file so can't give you the actual display)

So what I did that worked is to create a new file in Wrangler, with the same lines of code, then had to open an IMAC terminal window to FTP it to the site. This method work fine using both Ascii and Binary transfer. ( You can ftp an ascii file both ways but only binary on a binary file).... So it works fine this way, but I can't use this on a large scale to manipulate the website since I don't have Telnet access to do the house keeping...

I can write shell scripts to do the mass transfers if required but this is taking a huge step backward. No answers yet from the FileZilla site. I can't even get registered, as the email-bot has failed to send the verification email in three different attempts ( 3 unique addresses) I think something is going on there. Stay away from FileZilla..
Will work on it later today... have some other chores to attend to..
 
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
Well, what you've described is not normal OS X behavior. So I suspect something in the server. Are there other upload protocols available? Like sftp?
 
Joined
Apr 16, 2016
Messages
1,096
Reaction score
51
Points
48
Location
CT
Your Mac's Specs
MacBook Air Mid-2012 / iMac Retina 5K Late-2014
If you have an extensive Unix background, you would know that the Binary and ASCII modes for file transfer do nothing other than determine how to handle newline / carriage return in the files being transmitted. While you CAN transfer an ASCII file using either method, it can have unexpected results and your file could end up with a lot of "^M" line endings.

The Cyrillic characters you were seeing were almost certainly the result of your "text" editor attempting to use formatting and saving the file in a sort of binary format (and not raw text).
 
OP
R
Joined
May 27, 2016
Messages
6
Reaction score
0
Points
1
.....you would know that the Binary and ASCII modes for file transfer do nothing other than.....


If you read the previous entry, you'll see that is why I sent it both ways.... When you're on a new platform, you can't always tell where the shots are coming from... Saving a text file, in a text editor, with a ".txt" extension would certainly put one in the position of regarding the file as raw text. Maybe not in Apples world however..
Further, if you reread my input, using the basic FTP commands from a terminal window to transfer the file, put the file across intact, so the issue is not with the editor, moreso the voodoo used to 'ftp' the file In BOTH Filezilla and Text/Wrangler ..... which is why I tried both type of transfer in both software packages.... (over!)
 
Joined
Apr 16, 2016
Messages
1,096
Reaction score
51
Points
48
Location
CT
Your Mac's Specs
MacBook Air Mid-2012 / iMac Retina 5K Late-2014
Everything to do with FTP is handled by the server. Putting it into binary or ASCII mode sets the SERVER side of the conversation to handle line breaks in a particular way on RECEIVING files. It's independent of the client operating system. And, when I refer to SERVER and CLIENT, I am referring to the REMOTE and LOCAL system respectively. FTP does little as an actual server and actually relies on the client-side device to spin up random processes on high ports to handle the actual communication. This is entirely to handle the TCP stack issues that would arise from having hundreds of thousands of clients connecting and disconnecting, leaving sockets in FIN_WAIT states.

And, while you CAN transfer a text file from a Mac to a Unix system using either ASCII or binary without issue, that's because the format of the file on the Mac is stored exactly the same way as it would be on the Unix system (Mac is built on BSD). If you did that on a Windows platform, you would get unpredictable results because Windows stores text files differently than Unix, and binary is a "transfer without modification" method for new lines.

If you successfully transferred the file from the command line, then you're right - the issue is not the actual file or the editor. Instead, it's with the FTP client that you were using previously being somehow "brain dead" about the transfer method and getting it wrong.

I've successfully used FileZilla to manage and maintain MANY web sites without issue. If it's giving you a problem, there's likely something about the way you have the site configured for connectivity that's causing it. Is this the "recommended" ftp program you alluded to in the first post?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top