Accent error in IDE editor - Linux

-1

I'm having trouble highlighting 'Netbeans' and 'Android Studio' IDEs.

My operating system is linux elementary os [elementary OS 0.4 Loki]

Only in ides the accent characters are not entered. This is not an encode problem.

For example, when I type "no, coffee, flight", the words look like this: "No, coffee, flight" ... as if the accents were not placed.

Out of locales -a

bg_BG.utf8
C
ca_AD.utf8
ca_ES.utf8
ca_ES.utf8@valencia
ca_FR.utf8
ca_IT.utf8
cs_CZ.utf8
C.UTF-8
da_DK.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
hu_HU.utf8
id_ID.utf8
ja_JP.utf8
ko_KR.utf8
nb_NO.utf8
nl_AW
nl_AW.utf8
nl_BE.utf8
nl_NL.utf8
pl_PL.utf8
POSIX
pt_BR
pt_BR.iso88591
pt_BR.utf8
pt_PT.utf8
sv_FI.utf8
sv_SE.utf8
th_TH.utf8
tr_CY.utf8
tr_TR.utf8
uk_UA.utf8
vi_VN
vi_VN.utf8
zh_HK.utf8
zh_TW.utf8

Netbeans Configuration

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Atualizações: O IDE NetBeans está atualizado para a versão NetBeans 8.2 Patch 1
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13
System: Linux version 4.4.0-57-generic running on amd64; utf-8; pt_BR (nb)
User directory: /home/marcela/.netbeans/8.2
Cache directory: /home/marcela/.cache/netbeans/8.2

Android Studio Setup

I've tried many things, but I have not been able to solve this problem. However, when I open android studio through the terminal (as root) the accent works. [Netbeans could not test that way].

    
asked by anonymous 04.02.2017 / 13:02

2 answers

1

First test with the following command:

setxkbmap -model abnt2 -layout br -variant abnt2 

If it works and you want to make it work in a permanent way, edit the following file:

sudo nano /etc/default/keyboard

and change it to stay in the following configuration:

XKBMODEL="pc105"
XKBLAYOUT="br"
XKBVARIANT="abnt2"
XKBOPTIONS=""

Save the file and reboot and close if it is permanent.

    
13.02.2017 / 14:03
1

How I solved the Android Studio accent problem in elementary OS.

First, this is a problem with the elementary OS (or Linux you are using) and not Android Studio. So it's no use reinstalling, it will not solve!

Resolving ...

In elementary OS Step 1: Install the "iBus QT4". In a terminal:
sudo apt install ibus-qt4

Step 2: Open iBus
ibus-setup

Step 3: In the second tab, "Input Method", see if you have the option "Portuguese - Português (Brasil)".

3.A) If you do not have the entry "Portuguese - English (Brazil)", click the button next to "Add", search for "Portuguese - English (Brazil)" and add. Proceed to step 3.B;

3.B) If you have the entry "Portuguese - English (Brazil)", exclude the entry "English" and leave only "Portuguese". Close iBus and go to step 4;

Step 4: After closing iBus, in the terminal type:
ibus-daemon -drx

Now do a test. This will resolve the issue until the next reboot. To keep "4eva" running, you need to put the command from step 4 on automatic startup (in the elementary OS).

    
04.06.2018 / 17:45