Downloaded file comes out in gibberish?

I've downloaded a file from the internet and when I open it, it comes out on TextEdit.
That's perfectly fine but it comes in gibberish, so I can't read it.
My default language on my Mac is english but the downloaded file is in korean, if that matters.

Help? Please and thank you!

MacBook Pro, Mac OS X (10.6.7)

Posted on Jul 7, 2011 5:46 AM

Reply
13 replies

Jul 31, 2026 7:39 PM in response to X423424X

The first lines are:

œ¥¿¥‘ ¿˙∏¶ ¡◊ø©¡÷ººø‰


It opens on the Windows from the Notepad, like how it opens on the Mac as TextEdit.

It's also not a zip file, so I don't have to extract it and such.


When I do it on terminal, this is what it says after the file, space, dragging the file in:

/Users/***/Downloads/[하얀고양이]하느님저를죽여주세요-kjung037.txt: Non-ISO extended-ASCII text, with very long lines, with CRLF, NEL line terminators


The title of the file comes out in Korean fine, but I do not understand what terminal even does.


[Edited by Moderator]

Jul 7, 2011 9:31 PM in response to dangitskang

Can you post the first couple of lines of that "text" file. It may be that, for whatever reason, the file had the wrong mime type and thus just got typed as text. The first few characters are a usually a reserved "magic" word (or "number") indicating the file kind.


The simplest way to determine the file kind is to go into terminal and type the command file followed by a space and then drag the icon of the "text" file into the terminal window. The hit return.


If it's a windows executable file will tell you that. If it's, say a zip file, then file will tell you that. In which case drop that "text" file in an appropriate unzipper to decompress it (or add a .zip extension and double click it).


If file says it's just data you may have to look at those first few characters comprising the magic number and "guess", or try to google it, or try to add an extension like .dmg and see if it can be expanded.

Jul 7, 2011 10:56 PM in response to dangitskang

Apparently neither does terminal! 😁 You can change the supported font encodings with the terminal's preferences.


Oh, well, it was worth a try.


....


I just realized, looking back on your posts in this thread, that you said when you view the file in windows it looks fine (Korean) but not when viewed on the Mac. Could it simply be the case that those fonts are not installed on your Mac, assuming the Mac even supports them in the first place?

Jul 8, 2011 4:28 AM in response to noondaywitch

noondaywitch wrote:


try opening in Pages or Word. Or even TextWrangler.


TextWrangler is great, but neither Word nor Pages have any way to select the encoding you open something with and they would be my last choice for solving an encoding problem.


From the text provided, it looks like Korean is being read as MacRoman encoding. It probably needs to be opened instead as a Korean encoding or UTF-8.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Downloaded file comes out in gibberish?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.