You are not logged in.

#1 2014-08-18 22:58:01

i3_Arch
Member
Registered: 2014-01-29
Posts: 21

Not showing UTF-8 characters in urxvt or xterm (with slim)

When i startx from tty everything works fine, but when I use slim to start my session it doesnt show utf8 characters for my zsh-theme.

Same thing happens when i use xdm


If i launch a terminal and type

urxvt

or

xterm

and launch it from a already running terminal, it works fine....

output of

locale -a

returns

C
en_US.utf8
POSIX

here is .Xresources

xterm*faceName: Dejavu Sans Mono:style=Book:antialias=true:hinting=medium
xterm*faceSize: 8
URxvt.termName: rxvt-unicode-256color
URxvt.scrollBar: false
URxvt.font: xft:Dejavu Sans Mono:bold:size=11:antialias=true
URxvt.letterSpace: -1
URxvt.url-launcher: /usr/bin/firefox
URxvt.matcher.button: 1
URxvt.perl-ext-common: default,tabbedex,vtwheel,font-size,matcher,clipboard
URxvt.keysym.C-Up:     perl:font-size:increase
URxvt.keysym.C-Down:   perl:font-size:decrease
URxvt.keysym.C-S-Up:   perl:font-size:incglobal
URxvt.keysym.C-S-Down: perl:font-size:decglobal
URxvt.tabbed.new-button: false
Xcursor.theme: Ecliz-Arch

*foreground: #DDCCBB

! Brown BG
!*background: #30251D

! Grey BG
*background: #151515
!
!
!black
*color0:     #393939
*color8:     #AF875F
!red
*color1:     #BF1E2D
*color9:     #E7212A
!green
*color2:     #9DBA3A
*color10:    #A9C938
!yellow
*color3:     #F5B915
*color11:    #F7D325
!blue
*color4:     #1CA1DB
*color12:    #00AFDA
!magenta
*color5:     #652F90
*color13:    #894E9F
!cyan
*color6:     #EA7D24
*color14:    #F79321
!white
*color7:     #E7E8E9
*color15:    #F3F3F4

here is .xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
exec xscreensaver &
xcompmgr -c -f -r 28 D 10 &
xrdb -merge /home/cocky/.Xresources
exec i3
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

Last edited by i3_Arch (2014-08-22 04:21:04)


Archlinux + i3 + zsh = winning
Registered Linux User #565414
Blackarch Pentesting Distro
Github

Offline

#2 2014-08-19 07:17:50

fungle
Member
Registered: 2014-05-01
Posts: 81

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

Offline

#3 2014-08-19 20:20:36

i3_Arch
Member
Registered: 2014-01-29
Posts: 21

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

ok, I edited my .xinitrc as he did in this post https://bbs.archlinux.org/viewtopic.php?id=185756

It's still not working  sad
Any other suggestions would be much appreciated.

Oh and...
:: FYI ::  I also tried putting only xrdb -load ~/.Xresources    still nothing


here is the updated .xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
userresources=$HOME/.Xresources
xrdb -load ~/.Xresources
if [ -f "$userresources" ]; then
	xrdb -merge "$userresources"
fi
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
exec xscreensaver &
xcompmgr -c -f -r 28 D 10 &
exec i3
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

Last edited by i3_Arch (2014-08-21 01:04:54)


Archlinux + i3 + zsh = winning
Registered Linux User #565414
Blackarch Pentesting Distro
Github

Offline

#4 2014-08-21 01:08:32

i3_Arch
Member
Registered: 2014-01-29
Posts: 21

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

Should this be moved to Applications and Desktop Environments?


Archlinux + i3 + zsh = winning
Registered Linux User #565414
Blackarch Pentesting Distro
Github

Offline

#5 2014-08-21 01:11:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

i3_Arch wrote:

Should this be moved to Applications and Desktop Environments?

No.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2014-08-21 11:04:55

smirky
Member
From: Bulgaria
Registered: 2013-02-23
Posts: 277
Website

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

I launch uxterm. Maybe it could be useful for you too.


Personal spot  ::  https://www.smirky.net/  ::  Try not to get lost!

Offline

#7 2014-08-22 01:37:13

i3_Arch
Member
Registered: 2014-01-29
Posts: 21

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

smirky wrote:

I launch uxterm. Maybe it could be useful for you too.


Thanks for the reply... I tried it and the theme works fine with uxterm


The problem is, i want to use urxvt-tabbedex... i like the tabs  sad


Any other suggestions or ideas would be appreciated   big_smile


Archlinux + i3 + zsh = winning
Registered Linux User #565414
Blackarch Pentesting Distro
Github

Offline

#8 2014-08-22 03:50:31

i3_Arch
Member
Registered: 2014-01-29
Posts: 21

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

Created    '/etc/locale.conf'

that contained

#!/bin/sh
export LANG=en_US.UTF-8

And it works....

Last edited by i3_Arch (2014-08-22 04:20:47)


Archlinux + i3 + zsh = winning
Registered Linux User #565414
Blackarch Pentesting Distro
Github

Offline

#9 2014-08-22 04:09:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

Not solved, not like that anyway...

man locale.conf

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2014-08-22 04:20:26

i3_Arch
Member
Registered: 2014-01-29
Posts: 21

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

jasonwryan wrote:

Not solved, not like that anyway...

man locale.conf

Well when I set it system wide it works.... so it's a work around I guess???


it also works when set in .xinitrc

thought it would be better if set in locale.conf


how should I go about this?


Archlinux + i3 + zsh = winning
Registered Linux User #565414
Blackarch Pentesting Distro
Github

Offline

#11 2014-08-22 04:25:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Not showing UTF-8 characters in urxvt or xterm (with slim)

i3_Arch wrote:

how should I go about this?

The usual way... https://wiki.archlinux.org/index.php/Locale


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB