User avatar
jojopi
Posts: 3271
Joined: Tue Oct 11, 2011 8:38 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$

Mon Oct 03, 2016 11:12 pm

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.

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$

Mon Oct 03, 2016 11:32 pm

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

User avatar
jojopi
Posts: 3271
Joined: Tue Oct 11, 2011 8:38 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$

Mon Oct 03, 2016 11:54 pm

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.

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)10$

Tue Oct 04, 2016 12:36 am

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

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 8:42 am

VNC stopped working. getting logged out of SSH. i might just buy something else soon, nothing seems to work

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 9:57 am

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.
Memory in C++ is a leaky abstraction .

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 10:43 am

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 ?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 10:52 am

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

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 10:58 am

are you using this via putty or via the hdmi port / usb keybaord
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 11:00 am

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.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 11:01 am

pi 3 -
sudo apt-get install elinks

ssh via putty from my pc
elinks google.se
https://i.imgur.com/pfROS8s.png
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 11:04 am

RaTTuS wrote:pi 3 -
sudo apt-get install elinks

ssh via putty from my pc
elinks google.se
https://i.imgur.com/pfROS8s.png
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

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Tue Oct 04, 2016 11:08 am

are you using putty from your PC ?
you can send me login info if you want and I'll have a looksee
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)

Wed Oct 05, 2016 11:48 am

To quote myself:
dasmanul wrote:Can you post the output of

Code: Select all

cat /etc/default/locale
?
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.

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)

Wed Oct 05, 2016 12:35 pm

dasmanul wrote:To quote myself:
dasmanul wrote:Can you post the output of

Code: Select all

cat /etc/default/locale
?
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

Sakarias
Posts: 26
Joined: Wed Sep 21, 2016 4:59 pm

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Wed Oct 05, 2016 12:55 pm

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)

User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Wed Oct 05, 2016 2:43 pm

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?

rayjoh
Posts: 27
Joined: Thu May 23, 2013 11:48 am

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)

Wed Oct 05, 2016 4:52 pm

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=
-- Raymond

User avatar
dasmanul
Posts: 502
Joined: Wed Sep 30, 2015 10:20 am
Location: Frankfurt, Germany

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Wed Oct 05, 2016 6:36 pm

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.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to get The Terminal to display " Å Ä Ö "(Bounty)20$

Thu Oct 06, 2016 7:03 am

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
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “General discussion”