You are not logged in.

#1 2014-03-07 11:14:03

doragasu
Member
Registered: 2012-03-03
Posts: 160

[SOLVED] Is full UTF-8 supported in unicode-rxvt?

Does urxvt have full UTF-8 support, or it only supports 16 bit unicode characters?

I have set inconsolata font for URXVT adding to .Xdefaults this line: URxvt*font: xft: Inconsolata:pixelsize=17:antialias=True:hinting=True

I can write most characters, like á, ñ, etc. But It looks like characters with codes greater than 16 bits are not printed. E.g.:

- If I open XFCE Terminal (also configured to use Inconsolata font) and input: [CTRL]+[SHIFT]+U,1F600, it outputs the smiling face.
- If I open urxvt ant while holding [CTRL]+[SHIFT] type 1F600, only an empty rectangle is shown.

The same happens for other characters I have tested with codes greater than 16 bit. It works flawlessly though with 16 bit codes. Is there a way to make these characters to work? I need the smileys because of the telegram CLI client...

Last edited by doragasu (2014-03-08 20:41:45)

Offline

#2 2014-03-07 11:55:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED] Is full UTF-8 supported in unicode-rxvt?

urxvt uses the LC_CTYPE setting.

What is the output of `locale`?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-03-08 12:26:48

doragasu
Member
Registered: 2012-03-03
Posts: 160

Re: [SOLVED] Is full UTF-8 supported in unicode-rxvt?

locale output:

LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=

But I don't think this is a locale problem, because as I already wrote, I can write most characters, including spanish (es_ES) ones like á, Á, ñ, etc.

Offline

#4 2014-03-08 13:33:38

frostschutz
Member
Registered: 2013-11-15
Posts: 1,658

Re: [SOLVED] Is full UTF-8 supported in unicode-rxvt?

Are these characters covered by the font you set? urxvt does not automagically fall back to different fonts...

Last edited by frostschutz (2014-03-08 13:33:53)

Offline

#5 2014-03-08 18:31:42

doragasu
Member
Registered: 2012-03-03
Posts: 160

Re: [SOLVED] Is full UTF-8 supported in unicode-rxvt?

How can I know it? If I launch gucharmap, select the font and go to the section of these characters, I can see them without a problem. Also if I launch LibreOffice Writer, select the font and using [CTRL]+[SHIFT]+U, CODE, I write these characters, I can also see them without a problem.

Offline

#6 2014-03-08 19:22:09

CommanderC
Member
Registered: 2012-10-31
Posts: 14

Re: [SOLVED] Is full UTF-8 supported in unicode-rxvt?

There are some programs that can tell you which font they are using to display a specific character: emacs (M-x describe-char) and gucharmap (Right-click) are two of them.

Once you know the name of the fonts, add something like this to your ~/.Xresources:

URxvt.font: xft:FontName1,xft:FontName2,xft:FontName3

And run "xrdb -merge ~/.Xresources" to make those changes effective.

Last edited by CommanderC (2014-03-08 19:22:59)

Offline

#7 2014-03-08 20:41:11

doragasu
Member
Registered: 2012-03-03
Posts: 160

Re: [SOLVED] Is full UTF-8 supported in unicode-rxvt?

That did the trick, thanks!!!

BTW, in case anyone is interested, the font supporting smileys (codes starting from 1F600) is "VL Gothic".

Offline

Board footer

Powered by FluxBB