You are not logged in.
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
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
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
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
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
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:FontName3And run "xrdb -merge ~/.Xresources" to make those changes effective.
Last edited by CommanderC (2014-03-08 19:22:59)
Offline
That did the trick, thanks!!!
BTW, in case anyone is interested, the font supporting smileys (codes starting from 1F600) is "VL Gothic".
Offline