Skip to content

No utf-8 in urxvt.

Well, I have no idea what the cause is. My locale is fine, I'm using terminus ttf through infinality, which I originally installed to fix font issues I had in my web browser. Everything works great except.. utf-8 in urxvt. I have it fine in xterm. Here's my xresources http://pastebin.com/raw.php?i=rLa4vM7m

Unlike the other users who had this issue, if I run urxvt from inside a terminal I still do not have utf-8.

.. I'm probably doing something retarded

0 points11 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
2sn554

Author

7
posts
18
comments
0
media
View profile

12 comments

Have you tried this bit from the wiki:

In some cases where urxvt does not acknowledge ~/.Xresources, you may need to add xrdb -merge ~/.Xresources to your ~/.xinitrc file. See X resources for more information.

(I've never used urxvt, I ust really like the wiki)

2 points

To add to this are you using urxvt in daemon mode? If you made changes to your xresources they could not have been loaded since your daemon is still running.

1 points
unknown author

Deleted before we saved it.

1 points

Looking at your .Xresources file I see a few issues that could be the problem. First of all make sure your declarations are case sensitive. In some instances you use urxvt* when you should be using the case sensitive version of URxvt*. You may also want to specify the size as pixelsize instead. It would look like this instead, and modified for your specific size.

URxvt*font:       xft:Terminus:pixelsize=10

Keep in mind that changes in urxvt don't take effect immediately and the .Xresources file needs to be reloaded. This can be done with the command:

xrdb .Xresources

This will reload your .Xresources file, but you will still need to start a new instance of urxvt to make sure your changes worked. Lastly, to make any changes permanent and started at boot. Add

xrdb -load ~/.Xresources &

to your .xinitrc. I have mine added before my DE loads. While im not using terminus in urxvt, I have no problem loading utf-8 in urxvt. Hopefully this will help.

1 points

made changes, still no utf-8, thank you though!

1 points

Does changing anything else but font in .Xresources work after running xrdb .Xresources? Such as terminal colors. Also try commenting out the

urxvt*imLocale:		"en_US.UTF-8"

line. I saw that the output of your locale looked good so it may just be your .Xresources file.

1 points

I had an issue very similar to this with urxvt not displaying unicode characters, turns out I had forgotten/missed a line in the wiki and missed creating a file:

$ cat /etc/locale.conf
LANG="EN_US.UTF-8"
1 points

I have this file

1 points

Hmm... here's the top of my Xresources:

URxvt.cutchars: `"'%&()*,;<>@[]{|'"│=`
URxvt*depth: 32
URxvt*imLocale: en_US.UTF-8
URxvt*saveLines: 1200000
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true
URxvt*termName: rxvt-unicode-256color
URxvt*transparent: false

The big differences I see is you have your imLocale quoted, and don't have a termName set. I don't know know if either matter that much, however.

1 points

Can you post the output of locale?

1 points

LANG=en_US.UTF-8

LC_CTYPE=en_US.UTF-8

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=

wtf, the first two don't have quotations, does that make a difference?

1 points

I believe I fixed this issue when I had it by adding LANGUAGE=en_US.UTF-8 to /etc/locale.conf and then running locale-gen. However, on my most recent install I did not have this issue, and I'm fairly sure I used the same install steps.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.