Portuguese accent doesn't work on PHPStorm

Recently on a fresh Ubuntu install, suddenly PHPStorm stopped letting me use words with Portuguese accents.

For example:

Trying TILDE+A should result in: ã
Instead it results in: a

      

And this happens with other accents like:

Trying DIACRITICAL SIGN+E should result in: é
Instead it results in: e

      

The current laptop configuration looks like this:

  • OS: Ubuntu 15.04
  • Java: OpenJDK 8 (OpenJDK 7 didn't work either)
  • PHPStorm 8.0.3
  • Keyboard: Portuguese

Note 1: I think the problem might be with key bindings when the separate c-cedilla key works fine.

Note 2: My native language is not English, so errors may occur, feel free to correct me. I appreciate it.

Any further help would be appreciated, thanks a lot!

+3


source to share


2 answers


Ok, so after a few days struggling with this problem, I finally found out that I was already expecting from the beginning, this is a problem related to java itself.

For special characters to work, we must clear the XMODIFIERS environment variable, for example:

# Command to change the environment variable XMODIFIERS
export XMODIFIERS=""
# PhpStorm run, for testing if it worked
pstorm

      

And it worked for me!



So, after testing, I just added an export command to my ~ / .bashrc file so that this change takes effect every time, not just one when we manually change it in the terminal window. At the end of your .bashrc file, paste the following (same command as above):

export XMODIFIERS=""

      

I got advice from here: https://askubuntu.com/a/581769/410364

+8


source


For some reason, adding export XMODIFIERS=""

to rc file didn't work (put it in .bashrc and in .zshrc). Even putting in a .profile file doesn't work. So, I create a shell file with:

export XMODIFIERS=""

/opt/PhpStorm-191.6183.95/bin/phpstorm.sh

      



and place this wrapper file in your .desktop PHPStorm file as the path to the program file. This works for me :)

0


source







All Articles