CJK characters displaying as blocks

Bug #1172907 reported by RadarNyan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keepass2 (Debian)
New
Unknown
keepass2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

(Sorry for my spelling mistakes, I'm not really good at English)

Some screenshots:
Adding Chinese language pack didn't help (by extracting to /usr/lib/keepass2)
http://ubuntuone.com/35yKK9xrlnkRxpXJwD67Wu
http://ubuntuone.com/571HWYzQTCoN6V9IY7FbFp
I also tried Japanese language pack, no luck.
http://ubuntuone.com/2yAvWMbfeJ9NcySRJryPBR

However, I can copy the username with CJK characters correctly.
hum... I guess it's a font-family problem. Would you tell me how can I change the font?

BTW: keepass2 itself crashes a lot (especially when changing directory in open database window)
It is a good software, at least the Windows version, I've be using keepass for a long time.
But the ubuntu version - I'd say it's half-baked (or we say mono just isn't the right cross-platform solution?)

Revision history for this message
Julian Taylor (jtaylor) wrote :

mono winforms does not deal very will with some character sets.
You might want to try a keepassx alpha version which now is supposed to have support for the version 2 database and has a native gui:
http://www.keepassx.org/
though I have not tried it myself yet.

mono is a decent cross platform solution, if you don't rely on platform specific libraries like keepass does with winforms. winforms support in mono was always have baked and is now also unmaintained.

Changed in keepass2 (Debian):
status: Unknown → New
Revision history for this message
Feistybird (bryanjen-tw) wrote :

Simple Workaround :

sudo gedit /etc/fonts/conf.d/49-sansserif.conf

  <edit name="family" mode="append_last">
   <string>sans-serif</string> <============ change this font to a CJK font such as "WenQuanYi Zen Hei"

Or simply delete this file " /etc/fonts/conf.d/49-sansserif.conf "

As for the database fonts, it can be configured to a proper CJK font in options: interfaces: fonts (see attached)

Revision history for this message
RadarNyan (radarnyan-8) wrote :

Thanks Feistbird, it worked.

I tried to replace sans-serif to WenQuanYi Micro Hei, got no luck. So I just removed that file and it works.

Font size is a little small, but at least it's useable.

Revision history for this message
webmarwell (webmarwell) wrote :

For me neither deleting /etc/fonts/conf.d/49-sansserif.conf nor changing it works. I tried to configure keepass2 used password font and listing font, which is using WenQuanYi Zen Hei to "GB2312" instead of "western", but it changes itself back to western. However, that didn't have any effect. Now, after deleting (renaming) 49-sansserif.conf any options are grayed out. Any more idea?
Actually deleting the conf file will effect other programs too, right?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.