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

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.

  • Chinese Character displayed as square box

    I have been trying an opensourced application called Alliancep2p (could be obtained from www.alliancep2p.com) using JRE 1.6 on an English Windows XP Pro machine. The problem is all chinese input are displayed as "square box". Searching for a particular chinese phase works, only that everything is displayed as "square box". It looks like a font issue, though I'm not that sure. Is there anyway the default fonts could be changed, or to get the characters correctly displayed?
    Note: I have east asian fonts installed, and the Java config panel can display chinese correctly.
    I tried the same application under GNU/Linux (locale is UTF-8) and chinese input/display correctly without any problem at all. Does it mean that it is not the problem of the application, or?
    Thanks for all the input.

    Hi,
    Please check below notes which could be helpful for your issue
    After Korean Language Installation Oracle Apps Displays All Characters As Squares [ID 731894.1]
    Chinese Display as Square on the Form Menu after Apply NLS Patch 6678700_ZHT [ID 839957.1]
    Chinese Characters are displayed as Empty Squares using Courier New Font [ID 578656.1]
    Regard
    Helios

  • Traditional Chinese character display as square mark in workflow tab page

    Customer applied 11i ATG RUP7(6241631), then run the AD Administration utility to maintain multilingual tables, and no errors when upgrading EBS.
    Some tab page title and button text display as square mark.
    Please help!
    Thanks in adv,
    Jackie

    Hi,
    Please check below notes which could be helpful for your issue
    After Korean Language Installation Oracle Apps Displays All Characters As Squares [ID 731894.1]
    Chinese Display as Square on the Form Menu after Apply NLS Patch 6678700_ZHT [ID 839957.1]
    Chinese Characters are displayed as Empty Squares using Courier New Font [ID 578656.1]
    Regard
    Helios

  • 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.

  • 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

  • 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

  • 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.

  • 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 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 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)
    )

  • Chinese Characters not displaying properly

    I pasted Chinese text into a Rolling title but not all of the characters display.  Some (not many) of them display as an x inside of a square.  All I can think is that some of the characters are not being recognized. If it matters, the text is simplified Chinese copied from a website, pasted into Notepad, then copied again and pasted into the title.
    Help is greatly appreciated.

    John,
    I see that now, but the font I selected (simsun) seems to have resolved my issue. I believe it is a bug if I can display the characters correctly on other app, especially Microsoft.  On Microsoft apps, I can select many standard fonts and the Chinese Characters display correctly.
    Thank you for the link to submit a bug report. When I get time I will submit it, and hopefully they will correct the issue. 
    God Bless,
    Mark

  • 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

  • Insert chinese characters to mysql

    I have searched the forum and found a useful links --http://forum.java.sun.com/thread.jspa?threadID=530358 about inserting chinese characters to mysql. However, I can't see the chinese characters displayed in the db. The charset and collation of my table are utf8 and utf8_bin respectively. Can anyone help me? Below is my source code
    ------------------ Servet ---------------------
    package test;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class testServlet extends HttpServlet {
    private Connection conn;
    public void init(ServletConfig config) throws ServletException {
         sSysPhyPath = config.getServletContext().getRealPath("/");
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
         // set content type and other response header fields first
         res.setContentType("text/html");
         // get the communication channel with the requesting client
    PrintWriter out = res.getWriter();
    out.println("<html>");
    out.println("<body bgcolor=\"white\">");
    out.println("<body>");
         req.setCharacterEncoding("UTF-8");
         sValue = req.getParameter("s1");
         out.println(sValue.getBytes("UTF-8") + "<br>");
         DBConnection objConn = new DBConnection(sSysPhyPath);
         try {
              conn = objConn.get();
              objConn.execQuery(conn, "insert into TBL_test (test_desc) values ('" + sValue.getBytes("UTF-8") + "')");
         catch(Exception e) {
              e.printStackTrace();
         objConn.closeConnection(conn);
    out.println("</body></html>");
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
    doGet(req, res);
    public void destroy() {
    --------------- Html ------------------
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body bgcolor="#666666">
    <form name="test" method="post" action="testServlet">
    <input type="text" name="s1">
    <input type="Submit" name="Submit" value="Submit">
    </form>
    </body>
    </html>
    Besides, if I code the chinese characters directly in the servlet page, what is the encoding of the chinese characters by default? Is it related to my OS locale?
    Thanks a lot.

    objConn.execQuery(conn, "insert into TBL_test
    st (test_desc) values ('" + sValue.getBytes("UTF-8")
    + "')");You would be better off using a PreparedStatement and parameters. This will let the MySQL JDBC driver take care of the required encoding.

Maybe you are looking for

  • Changing image prefix in Apex 4.1

    Hi guys, I installed APEX 4.1 with EPG on Oracle linux 6 and for some reason I want to change image prefix from */i/* to */i4/*. I browsed to apex/utilities and logged in sqlplus as sysdba and run the file: @reset_image_prefix.sql choosing */i4/* as

  • Confused by external drive advice - any views?

    From the very introduction of Lightroom 1 I have structured my workflow around the principle of importing, selecting and editing NEFs on the internal hard drive that also holds the programme. Once edited, retained images are moved to a dedicated exte

  • Upgrade to CRM 2005 while keeping EP 6.0

    Dear Sirs, I have some question about the consequences of an upgrade to CRM 2005. Does anyone know how if this will affect the portal requirements? I work primarily with portals, and have little knowledge of CRM. Please feel free to give any input su

  • Date type attribute in web dynpro callable object

    Hi all, I am creating a callable object with date type attribute as input parameter in a web dynpro callable object. date type I have used is java.sql.date. But when I am exposing that callable object in GP its giving an error: Technical Exception: W

  • Validation of XML-Schema

    I have a question, if in the XDK there is a possibility to check a .xsd file, if it belongs to the XML Schema Definition http://www.w3.org/2000/10/XMLSchema Thanks for your help Greetings, Merry Christmas and Happy new Year Andreas