Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'French characters' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
French characters
Authored by: Ken Knoblauch on Mar 13, '02 11:23:11AM

I have a Ti G4 with a French keyboard. I've tried every encoding under the
Terminal preferences, but when I type any French accented characters on
the keyboard, all I get is an error signal. In vi, I get character codes.
I can name files in the Finder with accented characters but when I do an 'ls'
in terminal, the accented characters become character codes and I haven't
figured out a way to reference them yet. I'm keeping to 7bit ascii names
now, but would like to know how to handle the problem eventually.



[ Reply to This | # ]
French characters
Authored by: see on Mar 13, '02 02:09:22PM

i have this in my .bashrc to get 8bit chars working in terminal...how it's done in tcsh and other shells i have no idea...

stty cs8 -istrip -parenb
bind 'set convert-meta off'
bind 'set meta-flag on'
bind 'set output-meta on'

hope it helps (also have latin-1 as the setting)...this is getting all swedish chars working
vi etc needs to be compiled with support for it to show 8-bit chars instead of the code of the chars



[ Reply to This | # ]
French characters
Authored by: Ken Knoblauch on Mar 16, '02 11:02:52AM

Here is something that might be useful, if someone can suggest how
to apply it more generally. I was looking through my system to see if I had the source for vi to follow-up on the suggestion to recompile it for French characters and I came across the commands vis and unvis. It seems that piping keyboard commands through vis makes French accented characters appear in the terminal window and even in vi (although vi complains at start-up about needing to be piped through stdin and stdout). The problem with vi is that when I look at the file after saving it, the characters have returned to a character code (not octal, in fact, resembling more the keystroke command sequences of emacs, but I
haven't tried it with ISO-Latin-1, yet to see if that makes a difference). So if someone can suggest how to pipe a terminal session through vis, it might be a way to get foreign (at least for anglophones) characters in terminal mode.



[ Reply to This | # ]
French characters
Authored by: rv on Dec 08, '04 11:05:25AM

Great, this works!

Still, 'more' does not like characters more than 7 bits. I shall read the man to try to fix this problem.



[ Reply to This | # ]
French characters
Authored by: rv on Dec 08, '04 11:20:12AM

OK, once you've added in your .profile or whatever the piece of code provided by see, you can alias 'more' to 'more -r' to be able to read files with words like été, università, también... and much more!



[ Reply to This | # ]