1

I maked a file containing "ırmak" with a text editor via encoding ISO8859-9. Then, I tried to print the content with "cat" command in the terminal. But I could not. I use the commands

 export LC_ALL=tr_TR.ISO8859-9
 export LANG=tr_TR.ISO8859-9
 cat    text.txt

After these commands the terminal printed:

 �rmak

Note: The for the command

 echo ırmak

the terminal prints:

 ırmak
6
  • Welcome to SU @user :) I'm curious, what does say file myfile and what's the output of locale ?
    – gildux
    Commented Jan 15, 2023 at 0:34
  • I do not know the meaning of the keyword locale. Could you explain?
    – user
    Commented Jan 15, 2023 at 3:36
  • 1
    (1) "What's the output of locale" means "type locale in your shell, hit Enter and tell us what you got". After your export LC_ALL=… and export LANG=… there should be no surprises, so please check also locale -a to make sure tr_TR.ISO8859-9 is among locales available (generated) in your system. (2) When you run echo ırmak normally in a console, is the non-ASCII letter printed right? This test is to make sure the font you're using contains a proper glyph for the letter. Commented Jan 15, 2023 at 7:46
  • Thanks @KamilMaciorowski I wasn't enough clear, and the OP reply by editing the question and we can see there's a unapropriate font in use or still bad locales confs.
    – gildux
    Commented Jan 15, 2023 at 9:03
  • @KamilMaciorowski The echo command works because there is no encoding problem when I only use terminal. The problem is that I cannot set encoding of the terminal so that It reads my files correctly.
    – user
    Commented Jan 16, 2023 at 10:55

0

You must log in to answer this question.

Browse other questions tagged .