Chinese characters displayed with Arial

Hello,
I have got a very strange problem. I have a java application (I'm using Swing) that uses Chinese characters. The characters are displayed correctly.
During runtime the characters turn into squares. There is no regularity or specific action I do that triggers this event.
There are two problems:
1. As I mentioned, the characters turn into squares
2. The Chinese characters should NOT be displayed, as I am using "Arial", which does not contain Unicode characters.
Some suppose that the glyph cache contains - for what reason ever - the Chinese characters. Consequently, though using arial you can display Unicode characters. Then, at an unknown moment the garbage collector clears the glyph cache so that the characters turn into squares.
Is this theory logical? What other causes could there be for this problem? :-S
Thanks...!
Greets... Simon :-)

Simon1187 wrote:
Hello,
I have got a very strange problem. I have a java application (I'm using Swing) that uses Chinese characters. The characters are displayed correctly. In your IDE which has a specific font selected...
During runtime the characters turn into squares. There is no regularity or specific action I do that triggers this event. In your running application which does not...
There are two problems:
1. As I mentioned, the characters turn into squaresThey don't.
2. The Chinese characters should NOT be displayed, as I am using "Arial", which does not contain Unicode characters.Which is exactly why you see what you see.
Some suppose that the glyph cache contains - for what reason ever - the Chinese characters. Consequently, though using arial you can display Unicode characters. Then, at an unknown moment the garbage collector clears the glyph cache so that the characters turn into squares.
Is this theory logical? What other causes could there be for this problem? :-S
No. You're trying to display something the operating system and JVM can't display, and they show you the only thing they can show, a placeholder.

Similar Messages

  • Read SAP table content through VBA  why  Chinese characters display as '#'

    Hi ,
    I meet a problem . I want to get sap table content through RFC in excel  VBA. now  i have solve it . It can got table content . when  i change a new  system , it can get table content ,but chinese characters display as '#' ( it works well in sap 4.6c Chinese characters can display , when upgrate to ecc 6.0 it can't works well )
    some VBA code as below :
    Set ofun = CreateObject("SAP.FUNCTIONS")  ' create a FUNCTION object
       '  Connect  has create and conneted to SAP system
    Set ofun.Connection = Connect                     ' "connect"has create connetion sucess
    Set func = ofun.Add("RFC_READ_TABLE")    ' set RFC object to call function
        func.Exports("QUERY_TABLE") = "T179T"   ' set table name for get table content
        func.Tables("OPTIONS").DATA = "SPRAS   =   'ZH'"    ' set condition of language of  'ZH'
    If func.Call = True Then
            Set oline = func.Tables.Item("DATA")       ' set table content which get from table T179T to object "oline"
    endif
    who can give me some suggestion about this ?  Thanks .
    Edited by: Chris Xu on Oct 31, 2008 6:51 AM

    Hi Chirs,
    I am facing the same problem but i am using c sharp and this is a windows application.
    I tried to change the CodePage attribute by simply setting connection.codepage = "8040";
    But i get an exception.
    attempted to read or write protected memory.
    I cant seem to change this. What should i do. Also do we have to set this at the point of connecting to the Sap system or when i'm calling the RFC. I tried both instances but none worked. Could you please help me out.
    i am using VS 2008.
    Thanks,
    Yohan

  • IP19 no Chinese characters displayed

    Dear all,
    When I logon in Chinese and execute the transaction IP19 (graphical) then I do not get Chinese characters displayed. (see attachment for the strange result).
    Does anyone has a solution for this?
    Kind regards,
    Laura

    Dear Maria,
    In the English login, the title is appearing normal but the Chinese characters are not displayed. See screenshot.
    In Japanese it is the same issue as in Chinese. The content is tranlated but the tlte of the screen not.

  • Not all chinese characters display correctly with non-embedded text

    Hi all,
      I've updated to the last beta 2 of Flash Player 10.1 (10,1,51,66) and compiled this simple Flex application to illustrate the fact that not all chinese characters can be displayed correctly with non-embedded text (device font).
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   minWidth="1024" minHeight="768"
                   creationComplete="resourceManager.localeChain = ['zh_CN'];"
                   layout="{new VerticalLayout()}">           
        <fx:Script>
            <![CDATA[
                import spark.layouts.VerticalLayout;
            ]]>
        </fx:Script>
        <s:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝">
        </s:Label>
        <mx:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>       
    </s:Application>
      Notice that characters from the Unicode range 0x4F1E .. 0x4А2D are not displayed within <s:Label> component that uses Flash Text Engine (FTE) by default to display the text, but at the same time those characters display just fine within older <mx:Label> component that relies on flash.text.TextField instance to render the text.

        OK, did not know that "Arial Unicode MS" font is only distributed with Microsoft Office, was looking into relying on this font in case if "simsun.ttc" font is not available at the user's system, by using the following:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="1024" minHeight="768"
                   creationComplete="resourceManager.localeChain = ['zh_CN']"
                   layout="{new VerticalLayout()}">               
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/halo";
            s|Label {
                fontFamily: "Arial Unicode MS, SimSun, Arial";            
        </fx:Style>   
        <fx:Script>
            <![CDATA[
                import spark.layouts.VerticalLayout;
            ]]>
        </fx:Script>
        <s:Label id="sparkLabel" text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>   
    </s:Application>  
    Tough decision ahead, but accordingly to  the survey at codestyle.org (2000 participants from 2007 year and onwards), Arial Unicode MS is present at 62.53%% system surveyed.
    ps
       My current install of Windows XP already includes the install of Microsoft Office 2007 and I've also enabled/disabled the support of East Asian languages, thus the content of  my "fonts" folder differs now significantly from "clean" Windows XP install version.
    Nevertheless I found the page with comprehensive lists of standard fonts installed with different releases of Windows that looks viable here:  http://www.kayskreations.net/fonts/fonttb.html

  • Crystal Reports XI R2 Chinese characters display issue(with VB6)

    I have a vb6 program that interfaces to crystal reports xi using crystal active x report viewer. When i print a report with Chinese characters in it, they print end up printing as boxes, but when i open the report through crystal itself they print fine.
    Is there some setting that needs to be set to allow the characters to display properly?

    Not a bug in CR, it's a limitation of Microsoft Framework. It has problems rendering fonts properly though GDIPlus.
    Crystal Reports is a Win32 app, VB 6 and newer OS has issues. The viewer for CR is built into crw32.exe, the viewer you are using is an ActiveX viewer ( crviewer.dll ) and it can have limitations also. Mostly, CR XI R2 is unicode, using non-unicode fonts or non-UTF-8 type fonts are not supported. So some may work and others not.
    Make sure the fonts you are using are True Type and that they are shared for all users. Depends on the OS you are using also.
    Also, install the only patches available for R2, it may be resolved if you are not on the last updates:
    https://smpdl.sap-ag.de/~sapidp/012002523100009114712011E/crxir2sp4_fullbuild.exe ( requires and uninstall first so make sure you have your keycode, we can't give you a new one.
    https://smpdl.sap-ag.de/~sapidp/012002523100009114412011E/crxir2sp6_incremental.exe
    Thanks
    Don

  • Chinese characters displaying as square

    Hi,
    I am trying to update a text frame with following script. It works well for all ascii but if chinese characters are entered in text, it displays them as square. I have language pack installed on Indesign machine.
    //----script starts-----
    var myDocument = app.open(File('//192.168.1.189/Clients/44/ArtBuild/Artworks/60951.indd'));
    var myTextFrame = objPage.textFrames.itemByID(tmp_frmid);
    var paragraph1 = myTextFrame.paragraphs.item(0);
    paragraph1.contents = "Hello ャンペー"
    myDocument.save('MyFile.indd');
    //-----script ends ----
    This updates indd file to display
    Hello□□□□
    What can be done so that unicode displays as it is.

    Chinese fonts are already available on Indesign Machine.
    Another related query regarding special charcters is:
    If the above file doesn't have chinese characters but some special characters, then
    1. if I copy the script and execute it in ExtendTool script, it properly updates the indd with special characters specified
    2. If I call IndesignServer webservice by passing path of same script file, it updates indd file with junk characters.
    Wonder, what difference it makes when script is executed through indesign webservice and not ExtendToolscript

  • Chinese Characters Displaying as Boxes

    My iTunes used to display Chinese characters fine. But today, they all show up as boxes. I originally thought that it was something wrong with Windows, but I'm pretty sure it's an issue with iTunes. I tried to type in Chinese, and it works fine in other programs, but when I do it within iTunes (to change a song title), it becomes a box. And when I browse to the file within My Computer, the filename shows up in Chinese. But if I look at the properties of a song (Get Info), it will show the path with all the Chinese characters replaced by boxes. I believe this problem came up today, as I synced my iPhone last night, and it was fine then. I even tried to change the Language Preferences, but that only changed the menus and my songs are still boxes. Anyone else have this problem?

    Anyone else have this problem?
    Search this forum for "chinese" to find other reports.

  • Chinese characters display

    I want to store corresponding chinese words for few labels inside the global variables (.txt) file and want to display it inside JSP.
    Do i need to take any precautions for this ? Or like normal variable i can make use of that ?
    regards
    Manisha

    if you are storing in a db, you need to store them in the db as UTF-8. If not, and it's ISO8895-1 (which is common), you can get away with this trick...
    String name = resultSet.getString("name");
    if(name != null) {
       name = new String(name.getBytes("ISO8895-1"), "UTF-8");
    }That will convert it back to the proper character set. But it won't work between all character sets. You'd only need to do that when reading back from the DB, though.
    The native2ascii doesn't need code, you just make sure you save a text file with a certain encoding, tell native2ascii that encoding and it'll convert it properly to an ASCII file (which is fine for Properties files) and load the resource bundle.
    Reading from a regular file, you'd have to use:
    BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8")); // or whatever the file's encoding is.
    For using JSP pages, there's some code I posted here for dealing with Chinese (or others) with UTF-8 in a form page:
    http://forum.java.sun.com/thread.jspa?forumID=45&threadID=554776

  • Chinese characters displayed as ##### in Web Intelligence

    Hello,
    I am using Business Object XI 3.1 and created a Web Intelligence report however it is not able to display the chinese character name for some Taiwan vendors. On my backend BW 7.0, I can see the chinese characters. What could be the cause?
    Any help is most appreciated.
    Thank you.

    that setting has to be done in the registry where the oracle server and oracle client are installed. then restart the BOE servers and try.
    you can refer the oracle website (like http://www.oracle.com/technetwork/database/features/globalization/nls-lang-099431.html#_Toc110410556) for this setting.
    -Niranjan

  • Using Chinese characters mixed with English ??

    I volunteered to help a local charity with their program in
    China.
    They donate school books and funds to keep Chinese kids in
    school. Seems
    free school stops at age 15 in China.
    My problem is a page of mostly English text with a few
    Chinese
    characters. The page looks and prints perfectly. Yet when I
    save the
    page in DW8 and preview it in a browser the Chinese
    characters become ?
    marks. How do I publish a page of mixed text?
    Sorry I just accepted this job and as of now it is published
    with
    FP and that has to change. www.blessing-hands.org. I am
    attempting to
    cut and past the text from the existing site and build the
    site using DW
    and yes I know the pictures need to be compressed. Working on
    it..
    Thanks for any advise
    Joe Mackey

    OK, I am making progress solving this problem. The page
    complains that the
    encoding is not correct for some of the characters. So I go
    to preferences
    >Fonts and select Unicode 4.0 UTF-8 and select OK. But
    when I go back to
    preferences to verify, the encoding has returned to Western.
    Why is all free
    work so complicated?
    On 12/28/06 9:42 AM, in article
    en0l4g$gnh$[email protected], "Joe
    Mackey" <[email protected]> wrote:
    > I volunteered to help a local charity with their program
    in China.
    > They donate school books and funds to keep Chinese kids
    in school. Seems
    > free school stops at age 15 in China.
    > My problem is a page of mostly English text with a few
    Chinese
    > characters. The page looks and prints perfectly. Yet
    when I save the
    > page in DW8 and preview it in a browser the Chinese
    characters become ?
    > marks. How do I publish a page of mixed text?
    > Sorry I just accepted this job and as of now it is
    published with
    > FP and that has to change. www.blessing-hands.org. I am
    attempting to
    > cut and past the text from the existing site and build
    the site using DW
    > and yes I know the pictures need to be compressed.
    Working on it..
    >
    > Thanks for any advise
    >
    >
    > Joe Mackey

  • Japanese characters display with wrong encoding all of a sudden...

    I had no issues before when it came to typing in Japanese in DW using the windows language bar , I would just change the keyboard to JP(japanese) and then start typing within DW code view, but then one day after doing updating my main template and using the find and replace feature in DW all the Japanese characters turned into question marks, diamonds with question marks and ASCII alphanumeric codes..
    also the spaces in my documents  turned into blocks. It was a mess,
    *I don't know if it was something I triggered accidentaly or if it was some type of bug....I also remember copying and pasting text and Japanese characters from another website that I created(but I had done that a dozen times before and it was never a problem).
    Long story short, after not being able to find a solution I decided to manually delete the weird symbols and start over, I typed in Japanese using the windows language bar as always and began typing away inside the same pages that displayed those weird characters (sorry I don't know what the proper name for them is)and it accepted the Japanese characters with no issues, it was working just like it did before.
    but my question is "What happened?" was that a bug in DW or was it something on my end?
    I would like to know so I can fix the problem incase this happens again.
    I've always had utf-8 as the charset and it's never been an issue. (and I all my pages are saved as utf-8 as well)
    --Which is why I am confused why all the Japanese got messed up.
    Here is the head code of one of the pages that had the problem:
    Thank you.

    Without seeing an actual page, it's impossible to say what happened, but the most likely explanation is that you did something wrong. Asian characters, such as Japanese, require correct encoding. If the encoding is incorrect, you end up with mojibake.
    I suspect that what happened is that you copied and pasted from Shift-JIS or EUC-JP encoding into a different encoding. It's quite possible that your page was set to iso-8859-1 (Western European) without realizing.
    By the way, your head code didn't show up in your post.

  • Chinese characters displaying when running OUI for OAS SOA Suite 10.1.3.1.0

    When I start up OUI, all the boilerplate text is in Chinese. My nls_lang is set to ENGLISH_UNITED KINGDOM.WE8MSWIN1252, and I've set nls_enabled to FALSE in the oraparam.ini file.
    Given that I can't read Chinese, can anybody shed any light on what might be happening ? I guess it must be a windows setting somewhere - the regional options for Windows is set to English. The machine I'm using is XP Professional SP2.
    Thoughts anyone ?
    Thanks

    Okay, I updated everything but it's still not working:
    Database Connect Information: 10.6.0.138:1522:PLSExtProc
    /etc/hosts/
    127.0.0.1 localhost
    ::1 localhost ipv6-localhost ipv6-loopback
    fe00::0 ipv6-localnet
    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts
    10.6.0.138 asw082.DOMAIN
    127.0.0.1 localhost
    10.6.0.74 asw082.DOMAIN asw082
    Listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/product/10.2/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    tnsnames.ora
    ORASUSDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orasusdb)
    #LISTENER_ORASUSDB =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = null))
    LISTENER_ORASUSDB =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.6.0.138)(PORT = 1522))
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

  • Display of Chinese Characters in Flash Video

    '''Help needed to resolve issue with display of chinese fonts in Firefox.'''
    I used to be able to run an html based chinese language learning program (with embedded Flash) in Firefox on my Galaxy Nexus mobile...that is until I installed the latest version of Firefox.
    These are the instructions that came with the program to install/run it:
    This site is best viewed with Mozilla FireFox 3.x+ (and above) with either Adobe Flash Player 8+ (and above) at a minimum screen resolution of 1024 x 768. We also recommend that you enable both JavaScript and Cookies in your chosen browser's settings. Obviously things have moved on since then and the version of Firefox I installed around May 2013 would have been around 22.0
    While the above appear to be targeted at computer/tablet platforms the program ran successfully on my mobile and the embedded flash video worked well. The video clips and accompanying audio for each lesson were also accompanied by text that updated as each speaker began conversing. This text could be displayed (by selection) in English, Pinyin or Chinese characters.
    With an upgrade to the latest version of Firefox the Chinese characters now no longer display although 'English' fonts do...why? Is this a character encoding issue? Can this be set? What has changed between version 22 or thereabouts that I installed in May 2013 and the current version. Someone must surely know ??? If this cant be fixed, how can I re-install an older version of Firefox on my mobile. As an aside
    I was able to download firefox-22.0.bundle, some bundle.parts and .source files along with Firefox Setup 3.6.28.exe but cant install any of these. HELP needed please.

    Hello,
    Can you please confirm that this is the summary of the issue you are facing
    #On a site using Flash, and using Firefox 22.0, you were able to view English, Pinyin, Chinese characters on the flash video
    #You upgraded Firefox to the latest version from the play store, and also have the latest Flash version, but the same Flash video doesn't display the Chinese characters now
    #You are looking for the older version of Firefox for Android so that you can confirm that this issue has something to do with the latest version of Firefox
    For the last point, you can download the Android APKs of the older versions from the following links
    #[https://ftp.mozilla.org/pub/mozilla.org/mobile/releases/22.0/android/en-US/ Android APK for Firefox 22.0 in English]
    #[https://ftp.mozilla.org/pub/mozilla.org/mobile/releases/22.0/android-armv6/en-US/ Android APK for Firefox 22.0 in English for Arm V6]
    Please do note that you will need to enable the 'Install from unknown sources' option on the Android device to be able to install this APK. Suggest that you disable the setting after you finish your testing.
    Please confirm the details above and we can help you resolve the issue.
    Thank you

  • Displaying Chinese characters in SQL*Plus

    DB version: 11.2
    OS Version : AIX 6.1
    DB characterset:AL32UTF8
    To display chinese characters in SQL*Plus, I did the following:
    $ export LANG=zh_CN.UTF-8
    $ export LC_ALL=zh_CN.GB2312
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
    $
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on ÐÇÆÚÈý 5ÔÂ 2 15:52:33 2012
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning option
    SQL> ALTER SESSION SET NLS_LANGUAGE='SIMPLIFIED CHINESE';
    Session altered.
    SQL> ALTER SESSION SET NLS_TERRITORY='CHINA';
    Session altered.
    SQL> select unistr('\8349') from dual;  ---- not 100% sure if this is the way to verify if chinese characters can be displayed.
    UN
    ²Ý                 ----------------------------------------> Getting a junk character instead of chinese If I was using putty, are the above steps enough to get chinese characters displayed ?
    Our ssh client is Tectia (not putty).
    According the below ML Note, the SSH client has to configured correctly to use globalization features.
    +The correct NLS_LANG setting in Unix Environments [ID 264157.1]+
    Googling "Tectia + Chinese" didn't return useful results

    I understand that you are talking about Windows SSH Client.
    For Putty, you should set:
    $ export LANG=zh_CN.UTF-8
    $ export LC_ALL=zh_CN.UTF-8
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"
    and configure Putty in Window->Translation to use UTF-8.
    There is nothing about this subject on Tectia website and in their manuals, so my best guess is that the client requires Windows code page to work correctly. In such case you need to set your Windows system default locale (locale for non-Unicode programs) to Chinese and use the following settings on the server:
    $ export LANG=zh_CN.GBK
    $ export LC_ALL=zh_CN.GBK
    $ export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
    Verify with 'locale -a' that the setting zh_CN.GBK is supported on your system.
    -- Sergiusz

  • Firefox has a hidden tab with Chinese characters.

    The Firefox block on the taskbar line had Chinese characters displaying the current location. I closed all of my tabs and then clicked to quit Firefox. I then got a dialog box stating that I had multiple tabs open with Save, Quite, Cancel as options. The Chinese site was some how operating on a hidden tab. I had visited only sites such as BBC, Google Search, some trusted weather sites and downloaded some PDF from sites the McAfee had flagged as Safe. Any ideas?

    If you see CJK (Chinese/Japanese) characters on the Firefox title bar or the Windows Taskbar then that can happen if Firefox switches to UTF-16 encoding for some reason.
    The "RealPlayer Browser Record Plugin" extension (Tools > Add-ons > Extensions) has been reported to cause that issue.
    Be sure not to get confused with the RealPlayer plugin (Tools > Add-ons > Plugins) that plays media files.
    The extension adds some extra features like saving media files.
    You can disable/remove the RealPlayer Browser Record Plugin extension in the RealPlayer Preferences (RealPlayer: Tools > Preferences > Download & Recording)
    See also [[Troubleshooting extensions and themes]]

Maybe you are looking for

  • Issues using BitLocker in Windows 8 Emedded with 2012 SQL Server Express

    I was told that this forum may be able to help me with my issues (see original thread here: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8c81fde1-e91b-46eb-8d2f-b79426805ddd/using-sql-server-2012-express-with-bitocker?forum=sqlexpress). B

  • Is it possible to download a song and have it on a playlist but not in your music library?

    I am trying to put downloaded music on another persons phone but the music I download for them I DO NOT want it in my music library. Is there a way I could have the music in a playlist and still NOT show on my music library?

  • Dropdown getting deleted , when called in popup

    Hi All, When i press a button on my main view i call a popup view. In the popup view i need to add dropdowns on "Add dropdown Button" When i press the button once the  dropdown is created. When i press the button for second time the second dropdown d

  • Android Flash update not working

    I recently got a Samsung Galaxy Tab 10.1, so the fist thing I did was to see if I could watch online videos on yahoo-it worked. Then all of a sudden it stopped playing flash and also has blue boxes with white question marks in them in place of images

  • Version Control Tutorial

    I am publishing a reference manual and want to put it under version control. I also need to provide access to a team of authors and editors. I've checked the Adobe on-line tutorials and the one included with RoboHelp HTML, but could not find any inst