Can I pass Chinese characters in a queue (Do queues support Unicode)?

I am aware that there are a number of tools to allow the use of Chinese characters within LabVIEW. I have successfully built an application where I am able to switch between English and Chinese so that all screen text, buttons, multi-column list boxes etc etc are updated correctly.
However, I do all my event logging using queues. When I dequeue the an item, I want to write it out to a log file (i.e. a ".txt" file) but the resulting file contains rubbish instead of the Chinese characters.
As an experiment, I created a simple VI that reads an array of Chinese text and writes it to a text file and this works fine. But, as I say, if I try doing this using queues, I just just get rubbish.
Any help would be very much appreciated.
Lee
Solved!
Go to Solution.

Hi Steve
I've tried to replicate my situation but now I get a different outcome. It seems that I am now getting Chinese characters in my text file. However, you'll see from my code that I'm trying to Tab seperate each item (Date, Time and Message) but this doesn't seem to be working. Likewise, I want to end each line with a Carriage Return but that doesn't seem to be working either.
I think I'm going to have to take it on the chin that something I'm doing in my "real" application is preventing me from seeing the Chinese characters in my log file.
I've attached the sample VI along with a sample logfile from my "real" application so you can see what I'm getting.
I can't really see what I've done different between my sample VI and my application. The only real difference is to do with the Byte Order Mark. In my application I've tried the following :-
Inserting this once at the beginning of the entire log file
Inserting it once at the start of each line of the log file
Inserting it before each piece of text excluding the date and time
Inserting it before every message item including the Tabs and Carriage Returns
None of the above produce anything I can use.
Thanks for responding so quickly.
Cheers
Lee
Attachments:
Sample Chinese Queue.vi ‏37 KB
120125-16-15-59.txt ‏1 KB

Similar Messages

  • Itunes can not show chinese characters.

    My Itunes can not show chinese characters, they are all blocks, while I can re-type in the chinese name of the song in Itunes, then it works.
    The same as Japanese, some time it can show Jap, while sometime can not. How can I solve this problem. My computer is Mac system

    Do you have such problem only with Chinese characters?

  • Can't input Chinese characters in the Chinese forum

    I have trouble to input Chinese characters in the Chinese forum.
    It happened recently.
    Before I can finish type PinYIng, the IME window lost focus to IE.
    Other applications / web pages have no problem.
    Tested on 2 PCs.  Same problem.
    English verson of Win7.  64 bit.
    Please help !
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

    You probably did that, but just in case you didn't i'd use
    .setFont(...);

  • ODBC API SQLBindParameter Bug When Passing Chinese Characters?

    Hi Everyone,
    I am accessing Oracle 10g database (on Windows XP) from Windows XP machine.
    Table TEST_TABLE is defined as
    CREATE TABLE TEST_TABLE(NVARCHAR2(255))
    Using ODBC (code comes shortly) data are successfully inserted into table using SQLBindParameter to bind parameter values.
    The same data can be succesfully read from the table. But the query to retrieve only those rows containing chinese characters simply doesn't work.
    I am using SQLBindParameter to bind a parameter placeholder when executing SELECT * FROM TEST_TABLE WHERE C1=?. It simply doesn't find the rows if parameter value contains chinese characters, it only finds rows if parameter contains pure ASCII data.
    Am I missing something here? NVARCHAR2 data type should be able to always store unicode data. My database settings are:
    NLS_NCHAR_CHARACTERSET=AL16UTF16 and NLS_CHARACTERSET=WE8MSWIN1252
    Here is the code:
    #include "stdafx.h"
    #include <windows.h>
    #include <sql.h>
    #include <sqlext.h>
    #define SQLCheck(x)          if (SQL_SUCCESS != x) {\
                                                                SQLINTEGER native;\
                                                                SQLSMALLINT msgLength;\
                                                                SQLCHAR szState[SQL_MAX_MESSAGE_LENGTH],szErrorMessage[SQL_MAX_MESSAGE_LENGTH];\
                                                                ::SQLError(henvAllConnections,hdbc,hstmt,szState,&native,szErrorMessage,SQL_MAX_MESSAGE_LENGTH,&msgLength);\
                                                                printf("Error state=%s, native=%d, message = %s\n",szState,native,szErrorMessage);\
                                                                DebugBreak();\
    #define MAX_CONNECT_LEN 512
    int tmain(int argc, TCHAR* argv[])
         SQLRETURN nRetCode     ;     
         HENV henvAllConnections;
         HDBC hdbc(0);
         HSTMT hstmt(SQL_NULL_HSTMT);
         //TEST_TABLE is created using the following query CREATE TABLE TEST_TABLE(C1 NVARCHAR2(255))
         nRetCode = ::SQLAllocEnv(&henvAllConnections);
         SQLCheck(nRetCode)
         nRetCode = ::SQLAllocConnect(henvAllConnections, &hdbc);
         SQLCheck(nRetCode)
         HWND hWnd = ::GetDesktopWindow();
         TCHAR szConnectOutput[MAX_CONNECT_LEN];
         TCHAR *pszConnectInput = const_cast<LPTSTR>(_T("DSN=o10 american;UID=no;PWD=no#"));
         SWORD nResult;
         nRetCode = ::SQLDriverConnect(hdbc, hWnd, reinterpret_cast<SQLTCHAR *>(pszConnectInput),
              SQL_NTS, reinterpret_cast<SQLTCHAR *>(szConnectOutput), sizeof(szConnectOutput),
              &nResult, SQL_DRIVER_NOPROMPT);
         SQLCheck(nRetCode)
         nRetCode = ::SQLAllocStmt(hdbc, &hstmt);
         SQLCheck(nRetCode)
         TCHAR* szQuery = T("INSERT INTO TESTTABLE(C1) VALUES(?)");
         nRetCode = ::SQLPrepare(hstmt,reinterpret_cast<UCHAR*>(szQuery), SQL_NTS);     
         SQLCheck(nRetCode)
         SQLSMALLINT     DataType,DecimalDigits,Nullable;
         SQLUINTEGER     ParamSize;
         nRetCode = ::SQLDescribeParam(hstmt, 1, &DataType, &ParamSize,&DecimalDigits, &Nullable);
         SQLCheck(nRetCode)
         wchar_t chineseData[6];
         chineseData[0]=0x0023;chineseData[1]=0x0050;chineseData[2]=0x0043;chineseData[3]=0xBA85;chineseData[4]=0xc870;chineseData[5]=0x0000;
         wchar_t asciiData[] = L"test data";
         SQLLEN sqlnts = SQL_NTS;
         nRetCode = ::SQLBindParameter(hstmt, (UWORD)1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,ParamSize,DecimalDigits,chineseData,static_cast<SQLINTEGER>(wcslen(chineseData) * sizeof(wchar_t)),&sqlnts);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecute(hstmt);
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindParameter(hstmt, (UWORD)1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,ParamSize,DecimalDigits,asciiData,static_cast<SQLINTEGER>(wcslen(asciiData) * sizeof(wchar_t)),&sqlnts);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecute(hstmt);
         SQLCheck(nRetCode)
         nRetCode = SQLFreeStmt(hstmt,SQL_DROP);
         SQLCheck(nRetCode)
         TCHAR* pszSQL = _T("SELECT * FROM TEST_TABLE WHERE C1=?");
         int nMaxLength = 1024;
         SQLLEN lLength = SQL_NTS,dataLen;
         TCHAR lpszFieldName[256];
         SWORD nActualLen,nSQLType,nScale,nNullability;
         SQLULEN     nPrecision;
         SQLSMALLINT nResultCols;
         wchar_t pWData[1024];
         nRetCode = ::SQLAllocStmt(hdbc, &hstmt);
         SQLCheck(nRetCode)
         SQLLEN paramLength = static_cast<SQLINTEGER>(wcslen(chineseData) * sizeof(wchar_t));     
         nRetCode = ::SQLBindParameter(hstmt,1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,nMaxLength,0,chineseData,paramLength,&sqlnts);     
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQL), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = ::SQLNumResultCols(hstmt, &nResultCols);
         SQLCheck(nRetCode)
         nRetCode = ::SQLDescribeCol(hstmt, 1,     reinterpret_cast<SQLTCHAR *>(lpszFieldName), 255, &nActualLen,&nSQLType,&nPrecision,&nScale,&nNullability);          
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindCol(hstmt, 1,     SQL_C_WCHAR, pWData, (nPrecision+1) * sizeof(wchar_t),     &dataLen);
         SQLCheck(nRetCode)
         nRetCode = nRetCode = ::SQLFetch(hstmt);
         if (SQL_NO_DATA_FOUND == nRetCode)
              printf("No data found although data are in the table!\n");
         else
              printf("Found chinese data in the table!\n");
         //now try with another qay of SQLBindParameter, which uses length instead of SQL_NTS     
         nRetCode = ::SQLBindParameter(hstmt,1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,nMaxLength,0,chineseData,paramLength,&paramLength);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQL), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = nRetCode = ::SQLFetch(hstmt);
         if (SQL_NO_DATA_FOUND == nRetCode)
              printf("No chinese data found even using different way of SQLBindParameter, although chinese data are in the table!\n");
         else
              printf("Found chinese data in the table!\n");
         //now try with ascii data
         nRetCode = ::SQLBindParameter(hstmt,1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,nMaxLength,0,asciiData,static_cast<SQLINTEGER>(wcslen(asciiData) * sizeof(wchar_t)),&sqlnts);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQL), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindCol(hstmt, 1,     SQL_C_WCHAR, pWData, (nPrecision+1) * sizeof(wchar_t),     &dataLen);
         SQLCheck(nRetCode)
         nRetCode = ::SQLFetch(hstmt);
         if (SQL_NO_DATA_FOUND == nRetCode)
              printf("also didn't found ascii data!\n");
         else
              printf("found ascii data!\n");
         nRetCode = ::SQLFreeStmt(hstmt,SQL_DROP);
         SQLCheck(nRetCode)
         nRetCode = SQLAllocStmt(hdbc,&hstmt);
         SQLCheck(nRetCode)
         //now read all values to prove data are really there
         TCHAR* pszSQLAllDaya = _T("SELECT * FROM TEST_TABLE");
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQLAllDaya), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindCol(hstmt, 1,     SQL_C_WCHAR, pWData, (nPrecision+1) * sizeof(wchar_t),     &dataLen);
         SQLCheck(nRetCode)
         while (SQL_NO_DATA_FOUND != SQLFetch(hstmt))
              printf("data from table %S\n",pWData);
         nRetCode =      ::SQLFreeStmt(hstmt, SQL_DROP);
         SQLCheck(nRetCode)
    hstmt = SQL_NULL_HSTMT;
         ::SQLDisconnect(hdbc);
         ::SQLFreeConnect(hdbc);
         ::SQLFreeEnv(henvAllConnections);
         return 0;
    Regards,
    Darko

    Hi Darko,
    You are right, I think you have discovered a bug in the 10.1.0.2 ODBC driver. I believe this problem is described in Bug 3249731.
    The good news is that this is already fixed in the 10.1.0.3 ODBC driver. Do you have access to MetaLink? Goto patches and download "Patchset 3842783" which is the ORACLE ODBC INSTANT CLIENT DRIVER PATCH VERSION 10.1.0.3.0
    Good Luck
    Nat

  • Passing Chinese characters in OBIEE 11g GO URL to init the dashboard prompt

    Hi Experts,
    Currently we are using OBIEE 11g and passing the dashboard prompt parameter values through the OBIEE go url. When we are passing English strings the dashboard prompt is initialized with the correct passing value. However for Chinese character it is not. I am using the URLEncoder.encode("parameter value", "UTF-8") encoding to encode the passing string.
    Can anyone tell me what is the wrong in this approach? How can we pass any language strings to OBIEE 11g via go url?
    Thanks

    To avoid encoding problems use POST method. Here is js example for OBIEE 10g, but I bellieve you will find similar XML syntax in 11g.
    function getGoXML(P){
         var goXML = '<sawx:expr xmlns:sawx="com.siebel.analytics.web/expression/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawx:logical" op="and">';
         for (var i=0; i<P.length-1; i=i+2){
              goXML = goXML + '<sawx:expr xsi:type="sawx:comparison" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" op="equal">';          
              goXML = goXML + '<sawx:expr xsi:type="sawx:sqlExpression">' + P[i] + '</sawx:expr>';
              goXML = goXML + '<sawx:expr xsi:type="sawx:untypedLiteral">' + P[i+1] + '</sawx:expr>';
              goXML = goXML + '</sawx:expr>';          
         goXML = goXML + '</sawx:expr>';
         return goXML;
    function dashboardPageNav (navParams){     
         var tForm = saw.createForm("customNavForm");
         tForm.action = saw.commandToURL("Dashboard");
         saw.addHiddenInput(tForm, "PortalPath", navParams.portalPath);
         saw.addHiddenInput(tForm, "Page", navParams.portalPage);
         saw.addHiddenInput(tForm, "Action", "Navigate");
         saw.addHiddenInput(tForm, "StateAction", "NewPage");
         saw.addHiddenInput(tForm, "P1", "dashboard");
         saw.addHiddenInput(tForm, "P0", getGoXML(navParams.P));
         tForm.submit();
    dashboardPageNav({
         portalPath: '<portal path>',
         portalPage: '<page name>',
         P: new Array(                         
              '<param1 name>', '<param1 value>',
              '<param2 name>', '<param2 value>',
              '<param3 name>', '<param3 value>',
              '<param4 name>', '<param4 value>'
    });

  • Can't Sync Chinese Characters with PocketMac SyncManager - BIG BUGS

    My 8100 device is Chinese enabled.
    When I sync my contacts to my Mac, whichever contact contains Chinese Characters in any field can't be sync. Furthermore, SyncManager even delete my contacts with Chinese Characters in both device and Mac. 
    Please advice.
    Thx! =) 

    Hi!
    Oh, I'm sorry you are experiencing that. I am checking into this, because I was under the impression that PocketMac DID support them. Have you already worked directly with our support team?  (URL below).   
    Have a great day!
    Anne M.
    PocketMac Team
    Direct support available for PocketMac for BlackBerry FREE at http://tinyurl.com/RIMsupport

  • Can only display Chineses characters on OSX, not Windows Vista ?

    I have a OSX 10.5 and a Windows Vista machine, both are configured to use English/United Kingdom as Language/Locale. in a java app on OSX I can view chinese characters ok, but on Windows I cant they are just displayed as a square - why are they being treated differently
    thanks paul

    Thanks, that did work - I used this.setFont(Font.decode("arial unicode 11"));
    But on further investigation I found that the problem only occurred with the default Tahoma font when using JGoodies Windows Look and Feel, using the standard Windows or metal LAF it was fine. If I changed the font it worked with JGoodies as well.
    here is a program to illustrate problem
    import javax.swing.*;
    import java.awt.*;
    public class UnicodeTest
        public void start() throws Exception
           UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
           UIManager.setLookAndFeel("com.jgoodies.looks.windows.WindowsLookAndFeel");
            JTextField txtField = new JTextField();
            txtField.setText("\u01ff\u5742\u672c");
            JTextField txt2Field = new JTextField();
            txt2Field.setText("\u01ff\u5742\u672c");
            txt2Field.setFont(Font.decode("arial unicode 11"));
            System.out.println("Font Field 1 is:"+txtField.getFont());
            System.out.println("Font Field 2 is:"+txt2Field.getFont());
            JFrame frame = new JFrame("UnicodeTest");
            frame.setLayout(new FlowLayout());
            frame.add(txtField);
            frame.add(txt2Field);
            frame.pack();
            frame.setVisible(true);
         public static void main(String args[])  throws Exception
            UnicodeTest test = new UnicodeTest();
            test.start();
    }

  • How can i passing chinese word parameter within jsp

    i got the issue of passing chinese parameter from one jsp to another jsp.
    my scenario is this : <br>
    i store the unicode(\u521B\u9020\u7528\u6237)in the .properties file. in 1.jsp i call the java to get the unicode from .properties file and it shows properly in 1.jsp(shows the chinese word - &#24744;&#30340;&#21517;&#23383;&#24050;&#32147;&#34987;&#20182;&#20154;&#20351;&#29992;!). then 1.jsp redirect to 2.jsp. i use request.getParameter("message") to get the chinese word. 2.jsp shows me the funny symbols(1�?). i need someone help me. below are the code of each jsp file.
    1.jsp
    %@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    <%@ page import="java.util.Locale"%>
    <%@ page import="org.apache.commons.codec.binary.Base64"%>
    <%
         Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
         request.setCharacterEncoding("UTF-8");
         response.setContentType("text/html;charset=UTF-8"); //this is redundant
         request.getCharacterEncoding();
         response.getCharacterEncoding();     
         try {
             if (user1 != null) {
                   message+="1"+mpmservice.getLang(user.getLang(), "errmsg_username_exist")+"<br>";
                   bError=true;
              if(bError) {
                   response.sendRedirect("create_user.jsp?s=" + request.getParameter("s") + "&msg=" + message + "&name=" + name + "&description=" + description + "&phonenumber=" + request.getParameter("phonenumber") + privStr);
              %>
              <html>
              <head>
                   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
              </head>     
              <body>     
              <jsp:include page="/top.jsp" />
              <p class="headline"><%=mpmservice.getLang(user.getLang(), "create_user_title")%></p>
              <form name="operatordetails" id="operatordetails" method="post" action="create_user_do.jsp">
                   <input type=hidden name=msg value="<%=message%>">
                   <table class="infotable" id="report">
                        <tr>
                             <td class="left"><%=mpmservice.getLang(user.getLang(), "create_user_label_name")%></td>
                             <td class="middle" colspan="2"><%=name%></td>
                             <td class="right"> </td>
                        </tr>
                        <tr>
                             <td class="left"> </td>
                             <td class="halfmiddle">
                                  <input class="halfmiddle" name="Create" type="submit" id="Create" value="<%=mpmservice.getLang(user.getLang(), "create_user")%>" />
                             </td>
                             <td class="halfmiddle">
                                  <input class="halfmiddle" name="Cancel" type="button" id="Cancel" value="<%=mpmservice.getLang(user.getLang(), "cancel")%>" onClick="location='create_user.jsp?s=<%=request.getParameter("s")%>&msg=<%=message%>&name=<%=name%>&description=<%=description%>&phonenumber=<%=request.getParameter("phonenumber")%><%=privStr%>'" />
                             </td>
                             <td class="right"> </td>
                        </tr>
                   </table>
              </form>
              <jsp:include page="/bottom.jsp" />
         <% } %>
         </body>
    </html>
    [[u]b]2.jsp[/b][/u]
    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    <%@ page import="java.util.Locale"%>
    <%@ page import="org.apache.commons.codec.binary.Base64"%>
    <%
         Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
      request.setCharacterEncoding("UTF-8");
         response.setContentType("text/html;charset=UTF-8"); //this is redundant
         request.getCharacterEncoding();
         response.getCharacterEncoding();
         try {
             String message = request.getParameter("msg");
             System.out.println("in create_user.jsp  message>>>>>"+message);
              %>
              <html>
              <head>
                   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
              </head>     
              <body>               
              <jsp:include page="/top.jsp" />
              <p class="headline"><%=mpmservice.getLang(user.getLang(), "create_user_title")%></p>
              <form name="operatordetails" id="operatordetails" method="post" action="create_user_confirm.jsp">
                   <input type=hidden name=s value="<%=request.getParameter("s")%>">
                   <table class="infotable" id="report">
                        <tr>
                             <td class="left"><%=mpmservice.getLang(user.getLang(), "create_user_label_name")%></td>
                             <td class="middle" colspan="2"><input class="middle" name="name" type="text" id="name" size="35" value="<%=name%>" /></td>
                             <td class="right">
                             <% if (message!=null && message!="" && message.startsWith("1") ) { %>
                                  <%=message.substring(1,message.indexOf("<br>")) %>
                                  <% message=message.substring(message.indexOf("<br>")+4,message.length()); %>
                             <% } %>
                              </td>
                        </tr>
                   </table>
              </form>
              <jsp:include page="/bottom.jsp" />
         <% } %>
         </body>
    </html>
    [u].properties file[/u]
    errmsg_username_exist=\u60A8\u7684\u540D\u5B57\u5DF2\u7D93\u88AB\u4ED6\u4EBA\u4F7F\u7528!
    [\code]
    i really appreciate whoever reply this issue.
    thanks a lot

    i got the issue of passing chinese parameter from one jsp to another jsp.
    my scenario is this : <br>
    i store the unicode(\u521B\u9020\u7528\u6237)in the .properties file. in 1.jsp i call the java to get the unicode from .properties file and it shows properly in 1.jsp(shows the chinese word - &#24744;&#30340;&#21517;&#23383;&#24050;&#32147;&#34987;&#20182;&#20154;&#20351;&#29992;!). then 1.jsp redirect to 2.jsp. i use request.getParameter("message") to get the chinese word. 2.jsp shows me the funny symbols(1�?). i need someone help me. below are the code of each jsp file.
    1.jsp
    %@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    <%@ page import="java.util.Locale"%>
    <%@ page import="org.apache.commons.codec.binary.Base64"%>
    <%
         Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
         request.setCharacterEncoding("UTF-8");
         response.setContentType("text/html;charset=UTF-8"); //this is redundant
         request.getCharacterEncoding();
         response.getCharacterEncoding();     
         try {
             if (user1 != null) {
                   message+="1"+mpmservice.getLang(user.getLang(), "errmsg_username_exist")+"<br>";
                   bError=true;
              if(bError) {
                   response.sendRedirect("create_user.jsp?s=" + request.getParameter("s") + "&msg=" + message + "&name=" + name + "&description=" + description + "&phonenumber=" + request.getParameter("phonenumber") + privStr);
              %>
              <html>
              <head>
                   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
              </head>     
              <body>     
              <jsp:include page="/top.jsp" />
              <p class="headline"><%=mpmservice.getLang(user.getLang(), "create_user_title")%></p>
              <form name="operatordetails" id="operatordetails" method="post" action="create_user_do.jsp">
                   <input type=hidden name=msg value="<%=message%>">
                   <table class="infotable" id="report">
                        <tr>
                             <td class="left"><%=mpmservice.getLang(user.getLang(), "create_user_label_name")%></td>
                             <td class="middle" colspan="2"><%=name%></td>
                             <td class="right"> </td>
                        </tr>
                        <tr>
                             <td class="left"> </td>
                             <td class="halfmiddle">
                                  <input class="halfmiddle" name="Create" type="submit" id="Create" value="<%=mpmservice.getLang(user.getLang(), "create_user")%>" />
                             </td>
                             <td class="halfmiddle">
                                  <input class="halfmiddle" name="Cancel" type="button" id="Cancel" value="<%=mpmservice.getLang(user.getLang(), "cancel")%>" onClick="location='create_user.jsp?s=<%=request.getParameter("s")%>&msg=<%=message%>&name=<%=name%>&description=<%=description%>&phonenumber=<%=request.getParameter("phonenumber")%><%=privStr%>'" />
                             </td>
                             <td class="right"> </td>
                        </tr>
                   </table>
              </form>
              <jsp:include page="/bottom.jsp" />
         <% } %>
         </body>
    </html>
    [[u]b]2.jsp[/b][/u]
    <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
    <%@ page import="java.util.Locale"%>
    <%@ page import="org.apache.commons.codec.binary.Base64"%>
    <%
         Locale.setDefault(Locale.SIMPLIFIED_CHINESE);
      request.setCharacterEncoding("UTF-8");
         response.setContentType("text/html;charset=UTF-8"); //this is redundant
         request.getCharacterEncoding();
         response.getCharacterEncoding();
         try {
             String message = request.getParameter("msg");
             System.out.println("in create_user.jsp  message>>>>>"+message);
              %>
              <html>
              <head>
                   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
              </head>     
              <body>               
              <jsp:include page="/top.jsp" />
              <p class="headline"><%=mpmservice.getLang(user.getLang(), "create_user_title")%></p>
              <form name="operatordetails" id="operatordetails" method="post" action="create_user_confirm.jsp">
                   <input type=hidden name=s value="<%=request.getParameter("s")%>">
                   <table class="infotable" id="report">
                        <tr>
                             <td class="left"><%=mpmservice.getLang(user.getLang(), "create_user_label_name")%></td>
                             <td class="middle" colspan="2"><input class="middle" name="name" type="text" id="name" size="35" value="<%=name%>" /></td>
                             <td class="right">
                             <% if (message!=null && message!="" && message.startsWith("1") ) { %>
                                  <%=message.substring(1,message.indexOf("<br>")) %>
                                  <% message=message.substring(message.indexOf("<br>")+4,message.length()); %>
                             <% } %>
                              </td>
                        </tr>
                   </table>
              </form>
              <jsp:include page="/bottom.jsp" />
         <% } %>
         </body>
    </html>
    [u].properties file[/u]
    errmsg_username_exist=\u60A8\u7684\u540D\u5B57\u5DF2\u7D93\u88AB\u4ED6\u4EBA\u4F7F\u7528!
    [\code]
    i really appreciate whoever reply this issue.
    thanks a lot

  • Magic mouse can't do chinese characters input?

    My new iMac come with magic mouse delivered two days ago, but I am sorry to learn that only the track pad can do chinese handwriting.  Is it no alternative?    Pcs with Windows XP and Windows 7 can easily do chinese handwriting with the mouse, how come the Mac don't?

    http://www.yale.edu/chinesemac/pages/input_methods.html#HWI
    To ask Apple for a new feature, go to
    http://www.apple.com/feedback/macosx.html

  • Can't display Chinese Characters in JTree

    The default encoding has beed set to GB2312 by system. (I use eWin98&Richwin system)
    I can display Chinese in JEditorPane, can output Chinese using System.out.println, can read Chinese from files. BUT, I can not display Chinese in JTree, they all appear as squares.
    Is there any one can help me to solve this urgent problem? Thank you very much.

    You probably did that, but just in case you didn't i'd use
    .setFont(...);

  • How can I get Chinese characters in the date and calendar?

    The other night I was using a friend's Japanese iBook. I noticed that she the day displayed with a Chinese character in the menu bar and in the calendar widget (e.g., Her clock said 月4:27 instead of Monday 4:27), but her interface was in English (no Japanese menus).
    How can I set the day to display with a Chinese character?
    iBook G4 12   Mac OS X (10.4.8)  

    System Preferences/International/Formats/Region/Japan

  • Proxy messages are stucked in SMQ2.Can I pass these msgs in separate queue?

    Hi Guys,
    File >PI>ABAP proxy. (ECC)
    Once i pick and process the file, the resultant message is updating the table in ECC through ABAP proxy. These messages are high priority and they should not stuck in the queues in ECC.
    The problem is some of the messages of this interface are getting stucked in queues (SMQ2) by colliding with other low priority messages which are failed due to some data issues.
    Is there any way I can separate these high priority messages into separate custom queue and process them?
    Do I need to this in ECC or PI?
    Thanks
    Deepthi

    Hi,
         As Debashis has already said, use message prioritization in PI to handle your requirement.
    For SAP NetWeaver PI 7.0, navigate to SAP NetWeaver 7.0  SAP NetWeaver 7.0 Library  SAP NetWeaver Library  SAP NetWeaver by Key Capability  Process Integration by Key Capability  SAP NetWeaver Exchange Infrastructure  Runtime  Integration Engine  Prioritized Message Processing.
    For SAP NetWeaver PI 7.1 (including EHP 1), navigate to SAP NetWeaver  SAP NetWeaver PI/Mobile/IdM 7.1  SAP NetWeaver Process Integration 7.1 Including Enhancement Package 1  SAP NetWeaver Process Integration Library  Function-Oriented View  Process Integration  Integration Engine  Prioritized Message Processing.
    For more details about message prioritization within the Advanced Adapter Engine, please refer to SAP Help Portal http://help.sap.com, and navigate to SAP NetWeaver  SAP NetWeaver PI/Mobile/IdM 7.1  SAP NetWeaver Process Integration 7.1 Including Enhancement Package 1  SAP NetWeaver Process Integration Library  Function-Oriented View  Process Integration  Process Integration Monitoring  Component Monitoring  Prioritizing the Processing of Messages.

  • Can actionscript handle special characters/han or chinese characters?

    Hi,
    I am having issue with my created flash, it can't handle chinese characters? is there some way i can handle this thru code? or should there be any font or language pack installed?
    thank so much for the help.

    Hi,
    I already embedded the fonts. And I changed the encoding of my xml to GB2312.
    And placed a chinese characters on the node. It didnot rendered any chinese characters. instead, the movie is not rendered properly.
    Thanks.

  • Chinese characters in SquirrelMail

    I have a customer who has problems using Chinese characters mixed with western european languages on his mailserver.
    It can now show chinese characters correctly, but you can't write mixed. The received mail (even if I mail to my self), its just showed as 下整 etc
    Do I need any special settings in the server/browser/reading computer?

    Hm, I rewrite the codes I got with spaces in between so you can see what I ment;
    & # 1 9 9 7 9 ; & # 2 59 7 2 ;
    I don't know if this will help, but those are the ascii escape codes that could be used for html web pages that don't support any other encoding. I don't think you should ever see them in email.

  • Chinese characters in Data.

    Hello, can FDM Import chinese characters from an excel file?
    currently, I convert to .csv to load. Chinese becomes ????. When I do an excel import, I get this error,
    Detail: No [ups] range name found in file!
    I am using Excel 2007
    thanks,
    Tyson

    Do you have a named range in your excel file that starts with ups prefix? Excel imports have to be in a specific format as well
    Also when saving your file as a csv are you setting the Enconding to Unicode and not ASCII?
    Edited by: SH on Jun 26, 2012 4:20 PM

Maybe you are looking for

  • Idoc for Customer to Customer Posting

    Hi I want to upload finance data in SAP using IDOCS through XI I'm using the following idocs 1) GL to GL Posting ........ ACC_GL_POSTING01 (Accounting: General G/L Account Posting) 2) GL to Customer Posting ..... ACLREC01 (Posting in accounting: Bill

  • I can't update my apps - now they don't work at all

    I don't really use apps on my blackberry but there are two that I use everyday, these are twitter and whatsapp . I don't know if they need updating but they have just stopped working all together, this has happened before but updating them seems to f

  • How to identify HDR pictures in Lightroom?

    The Canon 6D produces HDR photos from 3 intermediate pictures, and it discards the intermemdiates.  The exif data on Lightroom (5) does not seem to identify the HDR photos, and I cannot find any other way to get Lightroom to identify HDR photos.  Any

  • Structures Vs RKFs and CKFs In Query performance

    Hi Gurus, I am creating a GL query which will be returning with a couple of KFs and some calculations as well with different GL accounts and I wanted to know which one is going to be more beneficial for me either to create Restricted keyfigures and C

  • IMovie '09 Corrupt Files

    We've noticed periodically that iMovie '09 will save as a corrupt file in the middle of a project and then we can't work any longer.  Has anyone else experienced this and if so, what have you done to resolve the issue?