[Solved] URXVT cannot display Japanese Characters

Solved:
I had a typo in my locale.conf, setting to an invalid locale - apparently that did it.
Thanks for the help!
Hi everybody!
I just now re-installed Arch because I switched hard-drives (to an SSD) and everything seems to be working again, apart from one thing:
urxvt doesn't display Japanese Characters, just questionmarks instead when using ls and garbage characters otherwise.
I literally copied and pasted my ~/.Xresources from my old install, so I'm not quite sure what went wrong.
This is said file:
Urxvt.urgentOnBell: True
urxvt*cursorBlink: false
!urxvt*internalBorder: 0
!urxvt*externalBorder: 0
URxvt*.depth: 32
URxvt*.background: [85]#000000
! URxvt.scrollstyle: plain
URxvt.scrollBar: false
URxvt.foreground: grey
! red
URxvt.color1: #CC0000
URxvt.color9: #B33838
! blue
URxvt.color4: #3465A4
URxvt.color12: #729FCF
! yellow
Urxvt.color3: #b48363
URxvt.color11: #d49b4e
!URxvt.font: 8x13
urxvt*font: xft:DejaVu Sans Mono:size=8:antialas=true,xft:Kochi Gothic:size=8
This is what fc-list has to say:
% fc-list | grep "Kochi\|DejaVuSansMono"
/usr/share/fonts/TTF/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/TTF/kochi-mincho-subst.ttf: Kochi Mincho,æ±é¢¨ææ:style=Regular,æ¨æº
/usr/share/fonts/TTF/kochi-gothic-subst.ttf: Kochi Gothic,æ±é¢¨ã´ã·ãã¯:style=Regular,æ¨æº
/usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
/usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/usr/share/fonts/TTF/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
I already tried re-installing the fonts and I also tried out alternative fonts, but nothing seems to work.
All the other settings from the ~/.Xresources file are applied perfectly, so I'm not quite sure where to look for the error.
My browser (dwb) displays japanese characters just fine.
Any help is greatly appreciated
Edit: I just realized that urxvt seems to completely ignore the fonts line - I had that problem once before, when I used the AMD Catalyst driver and not the open source one.
I now have an Nvidia card and started using the propietary driver - maybe that has something to do with it?
Last edited by lorizean (2013-12-02 13:16:14)

Works here:
URxvt*depth: 32
URxvt*buffered: true
URxvt*termName: rxvt-256color
URxvt.font: xft:Terminus:pixelsize=12:antialias=false
urxvt.imLocale: pl_PL.ISO8859-2
What's the output of 'localectl'?

Similar Messages

  • Problem in displaying Japanese characters on the browser.

    Hi Friends,
    Hope one of you could help me in this!!
    We are using SHIFT_JIS character encoding in our jsps to display Japanese characters.
    <%@ page contentType="text/html; charset=SHIFT_JIS" %>
    Is there any other configuration required on server side to let the Japanese characters being displayed? Because what I am getting on screen is quite annoying. Well something like below.
    ?V?M???????�
    Even though my knowledge in Japs isn't too good :-)) I can understand that these are not Japanese. I believe I am missing something in terms of server side configuration, Can anybody point that out. (Maybe some of the Japanese developers in here).
    This could not be a client side issue, since from the same machine I can access other Japanese sites and they display properly. Let me know if anybody can help.
    I am running these in WAS 5.0
    Thanks,
    King

    Your text in the JSP should be UTF-8 nevertheless - as would be ideal
    for internationalization. Java comes with a command-line conversion tool
    native2ascii which is bidirectional.
    As non-Japanese I am not certain whether "SJIS" might not be better (there
    are some name variations in java).
    The HTML generation will translate these characters to SHIFT_JIS in your case.
    Where the target encoding cannot handle the intended character it receives a
    question mark - hat you saw.
    Furthermore you need a proper font in HTML and under Windows (window title).
    Your webserver should have east-asian support. Though Japanese (and English)
    are standard, I, as non-japanese am not certain about SHIFT_JIS.
    Also there is some freedom in choice for a japanese encoding.

  • I cannot display Japanese correctly.

    OS : RedHat Linux 6.2J
    DB : Oracle 8i for Linux(8.1.5)
    NLS_LANG = JAPANESE_JAPAN.JA16EUC
    Developement Language : JDK 1.2.2, JDBC 2.0 API
    JDBC Driver : Oracle thin Driver - 8.1.6 classes12_01.zip, nls_charset12_01.zip
    I cannot display Japanese correctly.
    I have some problems for displaying Japanese.
    1. Not displayed Hankaku Katakana(8bit Katakana).
    2. Not displayed Japanese when I used the ScrollableResultSet.
    for example,
    Stmt = con.prepareStatement( pcSQL, TYPE_SCROLL_INSENSITIVE, CONCUR_READ_ONLY );
    rs = Stmt.executeQuery();
    String strName = rs.getString( "EMP_NAME" );
    txtName.setText( strName );
    ===> the result is displayed in Textfield
    "0x42415454EFBD..."
    When I didn't use the ScrollableResultSet, the result was correct.
    for example,
    Stmt = con.prepareStatement( pcSQL );
    Please help me.
    Thanks.

    I got the same question when using the Scrollable ResultSet. I can not solve it myself till now. and also need help.

  • [Bug Report] CR4E V2: Exported PDF displays Japanese characters incorrectly

    We now plan to transport a legacy application from VB to Java with Crystal Reports for Eclipse. It is required to export report as PDF file, but result PDFs display Japanese characters incorrectly for field with some mostly used Japanese fonts (MS Gothic & Mincho).
    Here is our sample Crystal Reports project:   [download related resources here|http://sites.google.com/site/cr4eexportpdf/example-of-cr4e-export-pdf]
    1. PDFExportSample.rpt located under ..\src contains fields with different Japanese fonts.
    2. Run SampleViewerFrameClient#main(..) to open a Java Report Viewer:
        a) At zoom rate 100%, everything is ok.
        b) Change zoom rate to 200% or 50%, some fields in Japanese font collapse.
        c) Export to PDF file,
             * Fonts "MS Gothic & Mincho": both ASCII & Japanese characters failed.
             * Fonts "Meiryo & HGKyokashotai": everything works well.
             * Open PDF properties, you will see all fonts are embedded with built-in encoding.
             * Interest to note that copy collapsed Japanese characters from Acrobat Reader, then
               paste them into a Notepad window, Notepad will show the correct Japanese characters anyway.
               It seems PDF export in CR4E mistaking to choose right typeface for Japanese characters
               from some TTF file.
    3. Open PDFExportSample.rpt in Crystal Report 2008 Designer (trial version), and export it as PDF.
        The result PDF displays both ASCII & Japanese characters without any problem.
    Test environment as below:
    * Windows XP Professional SP3 (Japanese) with MS Office which including extra fonts (i.e. HGKyokashotai)
    * Font version: MS Gothic, Mincho, Meiryo, all in Version 5.0
        You can download MS Meiryo from Microsoft's Site:
        http://www.microsoft.com/downloads/details.aspx?familyid=F7D758D2-46FF-4C55-92F2-69AE834AC928&displaylang=en)
    * Eclipse 3.5.2
    * Crystal Reports for Eclipse, V2, 12.2.207.r916
    Can this problem be fixed? If yes how long will it take to release a patch?
    We really looking forward to a solution before abandoning CR4E.
    Thanks for any reply.

    I have created a [simple PDF file|http://sites.google.com/site/cr4eexportpdf/inside-the-pdf/simple.pdf?attredirects=0&d=1] exported from CR4E. It is expected to display "漢字" (or in unicode as "\u6F22\u5B57"), but instead being rendered in different ones of "殱塸" (in unicode as "\u6BB1\u5878").
    Look inside into this simple PDF file (you can just open it with your favorite text editor), here is its page content:
    8 0 obj
    <</Filter [ /FlateDecode ] /Length 120>>
    stream ... endstream
    endobj
    Decode this stream, we get:
    /DeviceRGB cs
    /DeviceRGB CS
    q
    1 0 0 1 0 841.7 cm
    13 -13 569.2 -815.7  re W n
    BT
    1 0 0 1 25.75 -105.6 Tm     <-- text position
    0 Tr
    /ttf0 10 Tf                 <-- apply font
    0 0 0 sc
    ( !)Tj                      <-- show glyphs [20, 21], which index is to embedded TrueType font subset
    ET
    Q
    The only embeded font subset is defined as:
    9 0 obj /ttf0 endobj
    10 0 obj /AAAAAA+MSGothic endobj
    11 0 obj
    << /BaseFont /AAAAAA+MSGothic
    /FirstChar 32
    /FontDescriptor 13 0 R
    /LastChar 33
    /Subtype /TrueType
    /ToUnicode 18 0 R                            <-- point to a CMap object
    /Type /Font
    /Widths 17 0 R >>
    endobj
    12 0 obj [ 0 -140 1000 859 ] endobj
    13 0 obj
    << /Ascent 860
    /CapHeight 1001
    /Descent -141
    /Flags 4
    /FontBBox 12 0 R
    /FontFile2 14 0 R                            <-- point to an embedded TrueType font subset
    /FontName /AAAAAA+MSGothic
    /ItalicAngle 0
    /MissingWidth 1000
    /StemV 0
    /Type /FontDescriptor >>
    endobj
    The CMap object after decoded is:
    18 0 obj
    /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo <<
    /Registry (AAAAAB+MSGothic) /Ordering (UCS) /Supplement 0 >> def
    /CMapName /AAAAAB+MSGothic def
    1 begincodespacerange <20> <21> endcodespacerange
    2 beginbfrange
    <20> <20> <6f22>                         <-- "u6F22"
    <21> <21> <5b57>                         <-- "u5B57"
    endbfrange
    endcmap CMapName currentdict /CMap defineresource pop end end
    endobj
    I can write out the embedded TrueType font subset (= "14 0 obj") to a file named "[embedded.ttc|http://sites.google.com/site/cr4eexportpdf/inside-the-pdf/embedded.ttf?attredirects=0&d=1]", which is really a tiny TrueType font file containing only the wrong typefaces for "漢" & "字". It seems everything OK except CR4E failed to choose right typefaces from the TrueType file (msgothic.ttc).
    Is it any help? I am looking forward to any solution.

  • ITunes not displaying Japanese characters...

    Ever since a few days ago, iTunes stopped displaying Japanese characters for any of the songs that have them. They display right on the iPod and on my computer, and even if I re-type them, they continue being boxes. But if I copy and paste a section of cubes and paste it into Google Chrome or anything else, they show up just fine...
    Is there any way to fix that?
    Thanks~

    Have a look at Tome Gewecke's User Tip and let us know if it provides any helpful information for you.

  • Re:How to display Japanese Characters

    Dear all
    Does any one has idea how to display Japanese characters in PDF output generated by the Reports6i.
    Reports in Discoverer are working fine but when it comes to pdf the Japanese Characters are lost.

    Hi Rohit
    Thanks for prompt reply.
    1) Suppose if we upgrade the Report6i By applying the Latest patch.
    2)Then Develop the reports in 9i editor and run it on live enviornment which is Oracle9iAs (Application server)
    , Reports6i server(patch 14) will it still loss the effects/Can cause problems Later on.
    Thanks
    Jai

  • Charcterset to display Japanese characters

    I am using Oracle 8i
    Database (server) characterset & ncharcharcterset is utf8.
    What value i have to set in Client to display Japanese characters?

    Hello,
    I had the same problem as you have:
    Loading japanese and chinese data
    two steps are necessary:
    1) On XP: Control Panel->Regional and Language Options->Languages tab: aktivate
    "install files for ost asian languages" (you need the winxp install cd!!!)
    2) Run your select statement from SQL*Plus, iSQL*Plus or SQLDeveloper
    Sincerely,
    Christian

  • Display Japanese characters on Applet

    Hi All,
    I am able to display Japanese Characters on my Applet locally(Windows 2000 - US) by overwriting the font.properties content with the one in font.properties.ja found in JRE/LIB directory of my Jdeveloper JDK. When I deploy the applet on 9ias server which is configured for UTF8 charset I get squares wherever I have Japanese characters.
    Appreciate if someone could tell the procedures to make the applet to recognize the Japanese/UTF8 characters and display accordingly.

    I have read some documentation on JDBC thin drivers and they have mentioned that whenever JDBC retreives data from a database it converts it to Unicode 1.2 and I am already retreiving data from a UTF 8 database. The reason I think this is true is because I can display japanese characters locally on my windows machine by overwriting the font.properties in the JDevelopers- JDK- JRE - LIB folder by font.properties.ja
    There must be some way to test why it is showing squares for japanese characters when I deploy it on the server. May be not getting the MS Gothic font used to display Japanese?
    Looks like updating all the code is not feasible at this point as the code currently stores the data in Vectors and we can't perform a vector.getBytes(). Any help will be really appreciated.

  • Display japanese characters - beginner

    I'n beginner in i18n. I read documentation about i18n but I have problems.
    I'm trying to read japanese characters from a file and and diplay them in a label or text area, but I cannot. The file is OK. If I open it with MsWord the fonts are recognized(encoding Japanese Shift JIS -> font MS Gothic).
    Are there some settings I should do ? (font.properties file or any other settings for java). I just install japanesse font and THAT'S ALL.
    I have win98 and j2sdk1.4.
    Here is what I do :
    label.setFont(new Font("MS Gothic",Font.PLAIN,20));
    BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("myfile.txt")));     
    String text=br.readLine();
    label.setText(text);
    A sample code will be nice.
    Thank you,
    Cata

    I SOLVE THE PROBLEM.
    BufferedReader dis = new BufferedReader(new InputStreamReader( urlConn.getInputStream(),"SJIS"));     
    "SJIS" - was the key

  • Displaying Japanese characters in JSP page

    Hi,
    I am calling an application which returns Japanese characters from my JSP. I am getting the captions in Japanese characters from the application and I am able to display the Japanese captions. After displaying the Japanese captions, user will select the particular captions by selecting the check box against the caption and Press Save button. Then I am storing the captions in the javascript string separated by :: and passing it to another JSP.
    The acton JSP retrieves that string and split it by using tokenizer and store it in the database. When I retrieve it again from the database and display it, I am not able to see the Japanese characters, it is showing some other characters, may be characters encoded by ISO.
    My database is UTF-8 enabled and in my server I am setting the UTF-8 as default encoding. In my JSP pages also, I am setting the charset and encoding type as UTF-8.
    I shall appreciate you if you can help me in resolving the issue.

    Post the encoding-related statements from your JSPs - there are a number of different ones that may be relevant.
    It may also be relevant which database you store the strings in (Oracle, DB2, etc.), since some require an encoding parameter to be passed.

  • Problem in displaying Japanese characters in SAPScripts

    Hi All,
    I am facing a strange problem in one of my SAPScripts. I have one script in both English and Japanese languages. The scripts are already existing. I had to do some minor changes in a logo window. I did them and i did not do any other changes in any of the windows.
    When the output wa s seen for the script in the Japanese version, it was looking ok displaying all hte Japanese characters in various windows. Now, during testing , in the same server, the Japanese characteres are not shown. Instead , some ' #'(hash) symb ols are getting displayed.
    How could it happen? Did any body face such problem? If so, can anybody plz help me out with the solution?
    What shud i do to get back the Japanese characters in my script again?
    Regards,
    Priya

    Priya.
    this is not an ABAP problem ask your BASIS team to set printer cofing from SPAD.dont worry its not an ABAP issue at all.
    sometime printer doesnt support special char so it need to be setting with printer.
    Amit.

  • Cannot display BIG5 characters for web applications deployed to 9iAS

    I have just installed the J2EE and Webcache module of Oracle9iAS Release 2 to
    my Windows NT Server 4.0 and deployed a simple web application to it. However,
    I found that the JSP cannot display chinese (Big5) characters correctly. My JSP
    is something like:
    <%@ page contentType="text/html; charset=BIG5" %>
    <HTML><BODY>
    <% String s = SOME_BIG5_CHARACTERS; %>
    <%= s %>
    </BODY></HTML>
    On the other hand, I tried to re-direct the standard output to a log file and
    do the following in my servlet.
    System.out.println(SOME_BIG5_CHARACTERS);
    Now, the Big5 characters CAN be displayed correctly in the log file. So, I am
    confused with where the problem is.
    Here are my settings to my 9iAS:
    1) Using regedit, I have set the NLS_LANG variable of the corresponding
    ORACLE_HOME to TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5
    2) In the file %ORACLE_HOME%\Apache\Jserv\conf\jserv.properties, I have
    inserted the following line:
    wrapper.env=NLS_LANG=TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5
    3) In the file %ORACLE_HOME%\Apache\Apache\conf\httpd.conf, I have added the
    following line:
    PassEnv NLS_LANG
    4) In the file %ORACLE_HOME%\opmn\conf\opmn.xml, I have added the following
    line to the corresponding OC4J instance:
    <environment>
    <prop name="NLS_LANG" value="TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5"/>
    </environment>
    5) For my application server, I set the java option with -Dfile.encoding=Big5
    6) I have replaced the file font.properties with font.properties.zh_TW under
    %ORACLE_HOME%\jdk\jre\lib.
    7) I have set the following in the file orion-web.xml of my web application:
    <orion-web-app
    deployment-version="9.0.2.0.0"
    default-charset="Big5"
    jsp-cache-directory="./persistence"
    temporary-directory="./temp"
    internationalize-resources="false"
    default-mime-type="application/octet-stream"
    servlet-webdir="/servlet/">
    </orion-web-app>
    Anyone have idea on fixing my problem? Thanks in advance.
    Regards,
    Kae

    I met a similar problem before but not exactly your case. When I compile the JSP by Jdeveloper, it will convert the chinese characters to strange characters. It makes me crazy to handle the chinese characters ...
    Anyway, by my experience, you better isolate the chinese characters from your JSP or Java programs. Instead, put all language dependent text in a properties file and then use native2ascii to covert your properties file into Unicode. Of course, u need to change your page charset to UTF-8.
    U can get more idea from the following site.
    Brief Description of Internationalization:
    http://java.sun.com/products/jdk/1.2/docs/guide/internat/faq.html
    Detail Tutorial:
    http://java.sun.com/docs/books/tutorial/i18n/
    Native-to-ASCII converter:
    http://java.sun.com/products/jdk/1.2/docs/tooldocs/win32/native2ascii.html

  • Titlebar on Solaris does not display Japanese characters

    I have a Java Swing application (running on 1.6.0_06) that sets Japanese characters on the titlebar of Dialogs. The Japanese characters display correctly when the application runs on Windows but displays as ? when run under Solaris.
    Details of the Solaris environment:
    Japanese Solaris (UTF-8 encoding)
    Japanese locale (ja_JP)
    Using an X server that has the required font support (because Japanese characters display correctly everywhere except in the titlebar)
    Using CDE as the session manager (and I think dtwn is the window manager used by CDE)
    The funny thing is that the Japanese characters display correctly when I use the JDE session manager instead of CDE, so the problem exists only with CDE and the Open Look interface as well. I tried setting the required resources for WMShell too but that didn't work.
    I seem to be missing some CDE configuration somewhere as the window manager is not able to figure out that the title is non-C locale.
    Any pointers or help in this regard would be appreciated.

    You're probably viewing the website in the wrong character set.
    Try View > Character Encoding > some Japanese encodings, or UTF8 or 16
    The website itself should specify the encoding. The default encoding - in Options > Content - is only used if the website doesn't specify an encoding. Maybe the website you're looking at specifies the wrong encoding.

  • Displaying Japanese characters on JSP.

    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=SJIS">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    </HEAD>
    <BODY>
    <%
       String userID = myServer.getUserID() ;
       System.out.println("testing : "+userID) ;
    %>
    <%= userID %>
    </BODY>
    </HTML>=======================================
    Above is my code. I am able to print out the japanese characters at the command prompt using the system.out.println().
    But when I output the value to the jsp page using
    <%= userID %>, it becomes "???????"
    Some one please explain to me what went wrong ?
    Please help.
    Thank you.

    Hi,
    In our JSP page we have included
    <%@ page contentType="text/html; charset=SJIS" %>
    at the top of the JSP Page. This enables the Japanese Strings to be displayed correctly on the page after beiing picked from the Resource Bundle.
    Also just below the Head Tag we have included
    <meta http-equiv="Content-Type" content="text/html; charset=shift-JIS">
    This enables the Japanese data to be retrieved from the database as well as set the data successfully in the database if the upper Tag
    <%@ page contentType="text/html; charset=SJIS" %>
    is specified then the strings from the database are displayes as a series of ????????? , Now what we are looking for is a solution to get both the things right that is getting and setting the strings from the database as japanese and getting the strings from the Resource bundles as japanese .
    We have also tried the tomcat Web server , but it is of no use as we have found ourselves right where we had started .
    Earliest response will be deeply appreciated
    Regards

  • Cannot display kana characters in qt5 applications

    When I'm trying to type in japanese in qt5 application, it's unable to display kana characters (but kanji looks fine).
    Screenshot: http://i.imgur.com/bVM9ub2.png
    It affects only qt5 application, gtk2/3 and qt4 works fine.

    I can confirm this.
    If I paste the Kana table from http://en.wikipedia.org/wiki/Kana into qt 5 applications, it fails to render.
    It works fine in gtk and qt4.

Maybe you are looking for

  • Error in Source System While Uploading Data from ODS to Data Target

    Hi All, Iam getting Following Error while Uploading data from ODS to Data Target a) Error in Source System. b)DataSource 80MKT_DS01 has to be replicated (time stamp, see long text) Message no. R3016 Diagnosis DataSource 80MKT_DS01 does not have the s

  • How to default save as JPEG?

    My current workflow has been placing rectangular photos onto white square backgrounds and then saving as JPEGs. Each time I have to save the resulting image, I have to manually opt for JPEGs. Is there any way of making this a default? Thanks if anyon

  • Urgent: How to get value from Element Node?

    Hi All, I have an xml like below: <?xml version="1.0"?>      <Accounts> <Account rowid="1"> <Account_Id>1</Account_Id> <Customer_Id>1</Customer_Id> <Account_Type>SB</Account_Type> <Balance>1000.00</Balance> </Account> <Account rowid="2"> <Account_Id>

  • Text problem in SAPScript

    Hello, i have a problem i need to print one recepit with sapscript. I have to made a changes in displaying the text in o/p but it is in different language i.e PT text to display is IVA NÃO REGULARIZADO – ARTº 71 CIVA Now if you see above in sentence

  • Oracle Financial Reports designing in XML

    Hello Oracle Professionals. I have idea to design the reports in pdf format under 10g reports builder . Today my boss ask me to design some reports in XML format for Oracle Financials (Supplier Statement, Voucher detail Report). I dont know how to do