Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have some txt files containing greek characters, how can I read them @Ubuntu?

When I am opening one of the files I am getting these "Äåõôåñåýùí".

Here is a text file zipped and uploaded at rapidshare.

share|improve this question
1  
Can you upload at least a piece of the file somewhere, gzipped to not modify content, so we can try to help? –  enzotib Jul 26 '11 at 5:24

2 Answers 2

up vote 1 down vote accepted

When opening with gedit, you can chose the encoding. Your file might be in iso-8859-7 (greek) or windows-1253 encoding. Maybe one of it will work.

If you get the chance in windows: while saving the file select utf-8 encoding. This is universal and should be readable on all platforms in all countries.

share|improve this answer
    
When I am trying to open the file with windows-1253 encoding I get this: Could not open the file /home/chris/Desktop/badchars using the Greek (WINDOWS-1253) character encoding. And when I'm trying to open it with iso-8859-7 encoding I am getting these characters: "ñïóïìïΓΓΉΓ³Γ§ Γ―Γ" –  Chris Jul 27 '11 at 21:49
    
You should try with other editors. Maybe there is some problem with the one you are trying to use and the desirable encoding. –  lujbilami Oct 27 '11 at 10:08

Just to add that an easy way to see your files containing Greek and were saved by your friends in their Windows machines is to convert them to UTF-8 with the command:

iconv -f Windows-1253 -t utf-8 input.txt > output.txt

This will read input.txt as Windows-1253 and will write it into output.txt as UTF-8.

output.txt will contain the correct UTF-8 representation and you will be able to open the file in e.g. Leafpad without further problems.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.