WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: vi accents in tty - dumb question  (Read 2667 times)

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
vi accents in tty - dumb question
« on: November 02, 2009, 02:36:45 PM »
i am experiencing something new: mc, text mode, vi + latex; i start mc in text mode, i mount texlive and would like to use it with vi in order to write in french, german and english. but it seems that vi does not write accents and other similar signs (instead of that, it writes dots). changing the locales give expected results with nano on tty, but not with vi. any ideas? i'd like to use vi since i don't need to load my extension, and keep the system at 7,2 mb ram usage while wildly writing.

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: vi accents in tty - dumb question
« Reply #1 on: November 03, 2009, 06:13:17 PM »
actually, really dumb: you have to change the locale, and even if vi does not display accentuated characters in tty, a cat your_file displays all characters. mmmhhhh... is there a  way to make tty displayed accentuated characters?

Offline Gawron

  • Newbie
  • *
  • Posts: 11
Re: vi accents in tty - dumb question
« Reply #2 on: December 17, 2013, 02:14:12 PM »
Quite old topic, but this problem is still actual, so probably worth refreshing.
Meantime it is possible to have accentuated characters in tty with setconmap.sh from wiki site, but vi and vim still does not writes accentuated fonts and similar signs in UTF-8 mode. A cat on file gives fonts with accents. On X environment the same problem.
So far I have tried following steps without success:
1. Changed G_FILENAME_ENCODING
Code: [Select]
export G_FILENAME_ENCODING=UTF-82. Installed
xfonts-unifont.tcz
schumacher-clean-fonts
eglibc_apps.tcz
eglibc_add_lib.tcz
mylocale.tcz
dejavu-fonts-ttf.tcz
ttf-monofur.tcz
3. In Vim
:set encoding=utf-8
:set fileencoding=utf-8
and no success
gvim gives error message
Warning: Missing charsets in String to FontSet conversion
On Sakura terminal all characters with accents are correctly displayed.
Code: [Select]
sakura -e vimAnd still no characters with accents in vi vim and gvim.
There is no problem with gtk apps like leafpad abiword etc.