Menu

#350 Conky UTF

closed-invalid
Code (277)
5
2014-08-13
2011-02-09
Anonymous
No

Hello everyone! I have been working on setting up conky on my Ubuntu 10.10 desktop and I ran into a problem with conky not displaying UTF characters correctly. As you can see in the screenshot, instead of showing Japanese characters, it shows filler characters.

Conky -v:

Conky 1.8.0 compiled Fri Apr 23 10:42:08 UTC 2010 for Linux 2.6.24-27-server (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft
* ARGB visual

Music detection:
* MPD
* MOC

General:
* math
* hddtemp
* portmon
* Curl
* RSS
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* eve-online
* config-output
* Imlib2
* ALSA mixer support
* apcupsd
* iostats
* ncurses
* Lua

Lua bindings:
* Cairo
* Imlib2

conkyrc:

# conky configuration
# edited by Mark Buck (Kaivalagi) <m_buck@hotmail.com>

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 300 0
maximum_width 300

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# own window options
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 20
gap_y 300

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer right

# colours
color1 DimGray
# light blue
color2 6892C6
# orange
#E77320
color3 Tan1
# green
color4 DarkSlateGray
# red
color5 CC0000

text_buffer_size 2048

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

TEXT
${offset -5}${color3}${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}${color3}WEATHER${font} ${color4}${hr 2}${color1}

${execpi 1800 conkyForecast --template=~/.conky/conkyForecast.template}
${offset -5}${color3}${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}${color3}last.fm Recent${font} ${color4}${hr 2}${color1}

${execi 300 bash ~/.conky/lastfm.sh}

Discussion

  • Nobody/Anonymous

     
  • Nikolas Garofil

    Nikolas Garofil - 2011-02-13

    Change your config, you are using a font without support for these chars.

     
  • Nikolas Garofil

    Nikolas Garofil - 2011-02-13

    You created a bad bugreport, if you want a bug to be fixed, create a valid bugreport.
    A valid bugreport :
    - has a useful summary (so not "HELP ME !" or "i found a bug" but something like "$time shows wrong value on sunday")
    - has a useful description that:
    * contains the output of "conky -v"
    * contains the smallest possible configurationfile that has this problem (so don't include your current configfile but start with a empty configfile and start adding stuff until you experience the bug)
    * contains all other information that you think might be useful (you can never add to much info only too less) . Some examples:
    ** When you use conky on a non-linux system, tell us
    ** If you think the problem has something to do with your windowmanager, tell us the name and version, tell us
    ** If you don't experience this problem on a older/newer version of conky, tell us

     
  • Nikolas Garofil

    Nikolas Garofil - 2011-02-13
    • assigned_to: nobody --> ngarofil
    • status: open --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB