Page 2 of 2
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$
Posted: Mon Oct 03, 2016 11:12 pm
by jojopi
You have had two problems:
links seems not to want to display accented letters literally, even on a correctly configured system, as Heater already confirmed. I do not know if that can be fixed or not. Just use elinks as RaTTuS suggested on day one.
LC_CTYPE="UTF-8" is an invalid setting (you cannot specify a character encoding without a language and country). It is also unnecessary, so find out where it is being set and get rid of it. LANG=whatever alone is fine.
Other than that it should not matter what locale you choose. Even the default can display the Swedish alphabet.
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$
Posted: Mon Oct 03, 2016 11:32 pm
by Sakarias
jojopi wrote:You have had two problems:
links seems not to want to display accented letters literally, even on a correctly configured system, as Heater already confirmed. I do not know if that can be fixed or not. Just use elinks as RaTTuS suggested on day one.
LC_CTYPE="UTF-8" is an invalid setting (you cannot specify a character encoding without a language and country). It is also unnecessary, so find out where it is being set and get rid of it. LANG=whatever alone is fine.
Other than that it should not matter what locale you choose. Even the default can display the Swedish alphabet.
hey, yeah at this point any Terminal browser will actually do. i've downloaded Elinks. same problem tho
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$
Posted: Mon Oct 03, 2016 11:54 pm
by jojopi
Sakarias wrote:i've downloaded Elinks. same problem tho
For me it seems that links transliterates ä as "a:", whereas elinks (if the system is misconfigured for non-ascii) uses "ae". Not quite the same, but in both cases clearly intentional. What are you seeing?
Do you still have locale warnings on commands such as "perl -ex"? You must fix those first.
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$
Posted: Tue Oct 04, 2016 12:36 am
by Sakarias
jojopi wrote:Sakarias wrote:i've downloaded Elinks. same problem tho
For me it seems that links transliterates ä as "a:", whereas elinks (if the system is misconfigured for non-ascii) uses "ae". Not quite the same, but in both cases clearly intentional. What are you seeing?
Do you still have locale warnings on commands such as "perl -ex"? You must fix those first.
how do i fix those ? i'm quite new to linux
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 8:42 am
by Sakarias
VNC stopped working. getting logged out of SSH. i might just buy something else soon, nothing seems to work
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 9:57 am
by Heater
Sakarias,
I don't know if this has been asked or answered here already but when, in your opening post, you say your "terminal" is not displaying Å, Ä, Ö, etc did you mean a console window on a display attached to the Pi or a terminal windows displayed on another machine via ssh or whatever.
Because, I think that even if the Pi is configured correctly and displays these things properly it may be the remote terminal software that is getting it wrong. In which case it is the remote terminal that needs fixing not the Pi.
I have no idea if this is your problem or not and whether it applies to links in particular.
At this point I would create a new SD for the Pi and run it with a directly connected display to see if at least that can be configured to use your language setting correctly. If so, then try the remote ssh connection.
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 10:43 am
by RaTTuS
I asked this at
viewtopic.php?f=63&t=160699#p1041450
start with a keyboard and display attached to the RPi - get this how you want it to be
then move onto remote stuff if that is where you want to go /..
what is it you are really trying to achieve ?
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 10:52 am
by Sakarias
RaTTuS wrote:I asked this at
viewtopic.php?f=63&t=160699#p1041450
start with a keyboard and display attached to the RPi - get this how you want it to be
then move onto remote stuff if that is where you want to go /..
what is it you are really trying to achieve ?
what i really actually wanna achieve is to just get Å Ä Ö to display in Elinks. But Elinks use the terminal to function, and neither the terminal nor Elinks will display Å Ä Ö. it's a mess
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 10:58 am
by RaTTuS
are you using this via putty or via the hdmi port / usb keybaord
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 11:00 am
by Sakarias
RaTTuS wrote:are you using this via putty or via the hdmi port / usb keybaord
i am using SSH Mac -> RPI
and i'm using VNC.
neither of them works. the most important one would be VNC.
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 11:01 am
by RaTTuS
pi 3 -
sudo apt-get install elinks
ssh via putty from my pc
elinks google.se
https://i.imgur.com/pfROS8s.png
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 11:04 am
by Sakarias
haha wish my system looked like that....
i've got the Pi3 and Elinks. but yeah, got nothing.
is there any chans i can send you SSH information and you could take a look ? if you get it to work i'll send 20$ asap in btc
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Tue Oct 04, 2016 11:08 am
by RaTTuS
are you using putty from your PC ?
you can send me login info if you want and I'll have a looksee
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)
Posted: Wed Oct 05, 2016 11:48 am
by dasmanul
To quote myself:
dasmanul wrote:Can you post the output of
?
I guess the main problem is that invalid default locales get set on your system as jojopi has already mentioned. So, the first step would be to locate where your locales actually get set and correct these.
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)
Posted: Wed Oct 05, 2016 12:35 pm
by Sakarias
dasmanul wrote:To quote myself:
dasmanul wrote:Can you post the output of
?
I guess the main problem is that invalid default locales get set on your system as jojopi has already mentioned. So, the first step would be to locate where your locales actually get set and correct these.
here's the locale:
#File generate by update-locale
LANG=se_NO
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Wed Oct 05, 2016 12:55 pm
by Sakarias
i do not know if this is to any help. but if i try to make a € Symbol in the terminal, it will spell out EUR
to make it clear. i'm using Elinks now.
Å Ä Ö display perfectly when i type in a document or use the Browser. the only place it does not work is in the terminal (LxTerminal and Elinks ( any other terminal based browser)
so the system itself can see and type Å Ä Ö.
i might just ask this instead.... is there any other way to view / interact with my HTML library instead of the terminal / a Browser (browser is so slow, Elinks is/was perfect except for the Å Ä Ö thing)
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Wed Oct 05, 2016 2:43 pm
by dasmanul
There is certainly a way to make this work. What does "locale -a" give you?
You could try to clear the locale settings for your current session with
Code: Select all
unset $(locale|cut -d"=" -f1|xargs echo)
After that, what is the output of "locale" and "locale -s"? Does "sudo dpkg-reconfigure locales work after that?
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)
Posted: Wed Oct 05, 2016 4:52 pm
by rayjoh
Sakarias wrote:
here's the locale:
#File generate by update-locale
LANG=se_NO
That is 'Northern Sami - NORWAY (NO) (se_NO)'
From other posts I suppose You want swedish. My /etc/default/locale is
LANG=sv_SE.UTF-8
What is in Your /etc/locale.gen?
Code: Select all
$ grep -v '^#' /etc/locale.gen
en_GB.UTF-8 UTF-8
sv_SE ISO-8859-1
sv_SE.ISO-8859-15 ISO-8859-15
sv_SE.UTF-8 UTF-8
Code: Select all
$locale
LANG=sv_SE.UTF-8
LANGUAGE=
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Wed Oct 05, 2016 6:36 pm
by dasmanul
I've had a look on Sakarias' Pi in the meantime and setting the locale setting like you showed does not fix the problem. However, setting LC_ALL to any UTF-8 encoding (I tried en_GB.utf8 and sv_SE.utf8) does. I have no clue why this is the case but for now, the console problem is fixed.
In a VNC session, the characters still don't display correctly. My suggestion is to put "LC_ALL=en_GB.utf8" in /etc/environment but I don't know whether that will fix it.
Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$
Posted: Thu Oct 06, 2016 7:03 am
by RaTTuS
dasmanul wrote:I've had a look on Sakarias' Pi in the meantime and setting the locale setting like you showed does not fix the problem. However, setting LC_ALL to any UTF-8 encoding (I tried en_GB.utf8 and sv_SE.utf8) does. I have no clue why this is the case but for now, the console problem is fixed.
In a VNC session, the characters still don't display correctly. My suggestion is to put "LC_ALL=en_GB.utf8" in /etc/environment but I don't know whether that will fix it.
^ yes I was not able to test vnc from here
and I must admit I've not played with many locales