Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 28779  / 2 Years ago, thu, march 31, 2022, 4:19:28

I sometimes need to open text files that are encoded in EUC-KR.



man gedit gives:




   --encoding
Set the character encoding to be used for opening the files
listed on the command line.



This can be used to open specific files with the desired encoding:



gedit --encoding euc-kr readme.txt


However, each file to be opened requires a similar command to be typed.



I can run iconv on the file(s), but then I have to deal with different file versions.



Do I have better options for dealing with non-utf8 text files?


More From » gedit

 Answers
2

The easiest way to specify the encoding when opening the file is to use the Open Files dialog.



On the bottom left, you will see an drop-dwon option for Character encoding. If you haven't used the encoding in Gedit before, scroll down to Add or Remove....



In the new dialog, scroll down the list of Available Encodings until you find the one you want, then click Add to send it to the list of encodings on the right, then OK.



That's it. After that you easily open the file with the correct encoding.



enter image description here


[#31713] Friday, April 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
;