HT1918 Chinese characters on Appel store

I am living in Macau for 6 years. Close to Hong Kong. I recovered my IPad and my Wife iPhone. When I set my location for apple store. All the words became Chinese. I don't know Chinese. How do I set it back in English???
Regards

First: try logging out and back in again at Settings - iTunes & Appstores (tap your Apple ID and ' log out' )
After that: go to the store to check whether the issue is resolved.
If that doesn't work: http://support.apple.com/kb/ht1918

Similar Messages

  • Cannot Store Chinese Characters In Oracle 9.2.0.7 Database

    Hi,
    I'm having trouble localizing my Oracle 9.2.0.7 / ASP web application for our Chinese-speaking users.
    My Oracle 9.2.0.7 Database has NLS_NCHAR_CHARACTERSET set to AL16UTF16.
    I've set up a test table thus:
    CREATE TABLE "TBL_TEST_CH"
    field1                          NVARCHAR2(40),
    field2                          NVARCHAR2(40)
    I have the Chinese character set installed on my database / web server (same box), as well as a test client machine. I can see Chinese characters in my web browser, and can enter them in a test ASP page I've set up. When I execute an insert statement via ADO, the insert statement seems to work, but the result is that the data seems to be stored as upside-down question marks.
    I thought perhaps the data was being somehow scrambled between the web app and the database, so I set up an external table import the Chinese data from a Unicode text file:
    CREATE TABLE kenny.ch_import
         FIELD1          NVARCHAR2(255),
         FIELD2          NVARCHAR2(255)
         ORGANIZATION EXTERNAL (TYPE oracle_loader
         DEFAULT DIRECTORY ext_dat_dir
         ACCESS PARAMETERS
         (RECORDS DELIMITED BY ":"
         FIELDS TERMINATED BY "~"
         missing field values are null)
         LOCATION (ext_dat_dir:'test_ch.txt'))
         reject limit unlimited
    However, when I query the data in the external table using my web application, it comes back with garbage like "ÿþ1" and the like.
    To attempt to determine if the database is capable of storing the Chinese characters, I've performed the following test:
    1) I insert a Chinese character in an NVARCHAR2 field in my table by using the UNISTR function thus:
    insert into tbl_test_ch (field1) values (unistr('\3E00'))
    2) I interrogated the value using the dump function thus:
    select dump(field1, 1016) FROM tbl_test_ch
    I'm struggling to understand the output. Obviously the character set being used is "AL16UTF16" (which I would expect to be able to store Chinese characters), but the return_format argument I've provided to the function (1016) should return the hexadecimal code point of the character that's being stored. I would expect this to be the same as I inserted ("3E00"), but I'm getting the following output:
    DUMP(FIELD1,1016)
    Typ=1 Len=2 CharacterSet=AL16UTF16: 3e,0
    I'd really appreciate any suggestions on what I could do next to determine exactly where the problem lies. I've not been able to convince myself that the database is correctly storing the Chinese character data, but I appreciate equally that the problem could lie elsewhere.
    Thanks in advance,
    Kenny McEwan.

    Thanks, Serguisz.
    My technology stack is as follows:
    ASP 3.0 web application, running on IIS6.
    On the web servier, I have MDAC 2.8 SP2 on Windows Server 2003 SP1.
    On the Oracle database server, I have Windows Server 2003 SP1.
    My Oracle database version is 9.2.0.7.
    The client I've been using in this investigation is Internet Explorer 6.0.2900.
    It does look like you're right about characters coming from the application are being corrupted. To support this, I tried to insert the chinese character 博 as well as the Unihan character 中 from a web page in my application. I then used the dump function to interrogate the contents of the field I input to thus:
    select dump(field1, 1016) FROM tbl_test_ch
    DUMP(FIELD1,1016)
    Typ=1 Len=2 CharacterSet=AL16UTF16: 0,bf
    Typ=1 Len=2 CharacterSet=AL16UTF16: 0,bf
    Both characters seem to have suffered the same corruption.
    The problem seems to happen in the other direction as well - even after verifying that the character detailed in the previous post was stored correctly, it is still displayed by my web app as an upside down question mark.
    Do you have any suggestions on how to proceed?
    Best regards,
    Kenny.

  • Pls help.JSP: I could not store Chinese characters into files.

    Hi experts,
    I have this problem of cant store chinese characters into files(eg. .txt and .properties). I am adding
    these chinese text through a JSP website form....After i key in chinese characters in the textboxes
    in the website and sumbit the results, my chinese characters turned into ASCII or rather garbage in
    the files.
    Is there any way i can get the exact chinese characters i entered in the webite into the files?
    Need urgent assistance here.
    Thanks
    <%@ page contentType="text/html; charset=big5" %>
    <html>
    <head>
    <title>Confirmation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=big5">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </head>
    <%@ page language="java"%>
    <%@ page import="java.io.*"%>
    <%@ page import="java.lang.Integer.*"%>
    <%@ page import="java.sql.*"%>
    <%@ page import="java.sql.ResultSet.*"%>
    <%@ page import="javax.servlet.*"%>
    <%@ page import="javax.servlet.http.*"%>
    <%@ page import="java.text.*"%>
    <%@ page import="java.util.*"%>
    <%@ page import="java.net.URL"%>
    <%
    //getting attributes from previous page form
    //At this point, chinese characters r retrieved
    //Ascii/garbage displayed for text when retrieved from previous page.
    String gameName=request.getParameter("name");
    String encode=request.getParameter("encode");
    String gameType=request.getParameter("type");
    String info=request.getParameter("description");
    int check=0;
    int nextGameID;
    String temp="";
    String langCode="";
    //establish connection
    Connection con = null;
    try {
    Class.forName("org.postgresql.Driver");
    con = DriverManager.getConnection("jdbc:postgresql://172.20.134.110:5432/smsINTFET" , "postgres",
    "postgres");
    catch(ClassNotFoundException e) {
    out.println("Could not load the driver: "+e.getMessage());
    catch(SQLException e) {
    out.println("SQLException caught in relax db: "+ e.getMessage());
    Statement stmt = null;
    ResultSet rs = null;
    ResultSet ps = null;
    String strSQL = "";
    String strSQL2 = "";
    String tempCat = "";
    strSQL="SELECT gamename FROM cp_games order by gameid;";
    try {
    stmt = con.createStatement();
    rs = stmt.executeQuery(strSQL);
    stmt.close();
    catch(SQLException e) {
    out.println("SQLException caught: "+ e.getMessage());
    while(rs.next())
    check=0;
    temp=rs.getString("gamename");
    if(temp.equalsIgnoreCase(gameName))
    // there is similar record in database
    check=1;
    break;
    else
    check=0;
    if(check==0)
    %>
    <body background="button/bkgd.jpg" bgproperties="fixed">
    <p><b><font size="30pts" face="Monotype Corsiva">Confirmation</font></b></p>
    <HR style="WIDTH: 500px; COLOR: blue; HEIGHT: 3px">
    The following information has been added.
    <table width="75%" border="0" cellspacing="0" cellpadding="2">
    <%
    String strCat="";
    strCat="INSERT INTO cp_games(gamename,description,encode) values('"+gameName+"','"+info+"','"+encode+"');";
    stmt = con.createStatement();
    stmt.executeUpdate(strCat);
    System.out.println("Successful inserted category");
    stmt.close();
    //setting language
    if(encode.equals("ascii"))
    langCode = "US";
    if(encode.equals("ms950"))
    langCode = "TW";
    if(encode.equals("ms936"))
    langCode = "CN";
    strSQL2="SELECT gameid FROM cp_games where gamename = '"+gameName+"';";
    try {
    stmt = con.createStatement();
    ps = stmt.executeQuery(strSQL2);
    stmt.close();
    catch(SQLException e) {
    out.println("SQLException caught: "+ e.getMessage());
    ps.next();
    nextGameID=ps.getInt("gameid");
    out.println("<B>The game number : </B>" + nextGameID);
    %>
    <tr>
    <td><B>Game added: </B><%=gameName%>
    </td>
    </tr>
    </table>
    <%
    String newFile="G:\\home\\smsGamesINTV2\\colorGame\\propertiesFiles\\FET\\CP_Game"+nextGameID+"_"+encode+"_"+langCode+".properties";
    try
    {               //begin file
    PrintWriter outFile=null;
    //create a new file and write the initial settings to file
    outFile=new PrintWriter(new FileOutputStream(newFile,true));
    outFile.println("game_intro="+nextGameID+")"+gameName+" - "+info);
    outFile.println("");
    outFile.println("game_title="+gameName);
    outFile.println("");
    outFile.println("game_type="+gameType);
    outFile.println("");
    outFile.println("qns_no=0");
    outFile.println("");
    outFile.println("ana_no=0");
    outFile.close();
    }//end file
    catch(IOException e)
    out.println("File Create Error");
    else // no match found
    out.println("Game,"+temp+ " already added");
    %>
    </body>
    </html>

    try to add this code under this line:
    <%@ page contentType="text/html; charset=big5" %>
    <% response.setContentType("text/html; charset=big5"); %>
    I have faced the problem like yours and it works fine for me. Try and see.

  • How to store and retrieve chinese characters

    Hi, I am facing some problem in storing and retrieving of chinese characters from oracle,9i .
    This is the character i am trying to store into the database
    自动提款机网络
    while trying to retrieve it, it shows
    自?提款机网?
    ^ ^
    you can see the weird characters like ? at some places.
    here is the sample code which i can using to store and retrieve data from the database
    class testInsert
    public static void main(String[] args)
    try {
         DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
         Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@172.16.6.81:1521:JFPPTDB1", "citi_user", "citi_user");
         int employee_id = 12345;
    String ename = "自动提款机网络";
         oracle.jdbc.OraclePreparedStatement pstmt = (oracle.jdbc.OraclePreparedStatement)conn.prepareStatement("INSERT INTO employees (employee_id, last_name) VALUES (?, ?)");
         pstmt.setFormOfUse(2, oracle.jdbc.OraclePreparedStatement.FORM_NCHAR);
         pstmt.setInt(1, employee_id);
         pstmt.setString(2, ename);
         pstmt.execute();
    pstmt.close();
    pstmt = (oracle.jdbc.OraclePreparedStatement)conn.prepareStatement("SELECT last_name, employee_id from employees");
    ResultSet rset = pstmt.executeQuery();
              String name = "";
              while(rset.next())
                   name = rset.getString(1);
         int id = rset.getInt(2);
              System.out.println("the name is :"+name);
    catch (SQLException sqe)
              System.out.println("Java SQLException caught, error message="+sqe.getMessage());
    and the table in oracle is
    SQL> desc employees;
    Name Null? Type
    LAST_NAME NVARCHAR2(10)
    EMPLOYEE_ID NUMBER
    I am using classes12.zip for oracle,9i. Is there any database setting that i need to know to retrieve the chinese characters?.
    I have been facing this problem for quite sometime and it makes my life tough. Please help me in solving this issue.
    Thanks
    PD

    hi, can you retrieve the chinese character from your os? When it comes to the wild code of asian character, you should focus on the database/client character setting. you may ask more about it from your dba.
    have a nice weekend!
    eilison
    [email protected]

  • Store&read chinese characters in MS SQL server 2000 using Java

    Hi,
    I have a problem to store Chinese characters in MS SQL Server 2000, storing question marks(??????) instead of Chinese characters
    I am using JSF framework, SUN APPLICATION Server 9.1 , MS SQL Server 2000 server and Microsoft data source driver class (com.microsoft.sqlserver.jdbc.SQLServerDataSource) to connect db.
    I have one solution:
    IN JSP:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    and
    In database column type should “nvarchar” in place of varchar
    while inserting or updating the same need to add ‘N’ prefix with the value like insert into client(Name, Id ….) values (N+)
    the above is working fine but the problem is here i have already defined database with 100s of tables I cant change database tables as well as queries
    Thanks,
    Sathi

    I don't know any betterer option, than to copy the database tabels redefining the Chinese data fields as nvarchar.
    To be frank I had also problems writing to a html file Chinese text stored in MS SQLServer 2000 nvarchar fields.
    The following worked:'
         public String getEncodedData(ResultSet resultSet, int columnIndex, String charset)
         throws SQLException
              //final String methodName = "getEncodedData";
              InputStream binaryStream =resultSet.getBinaryStream(columnIndex);
              String readStringFromStream=readStringFromStream(binaryStream, charset);//UTF_16LE);
              return readStringFromStream;
         public String readStringFromStream(InputStream inputStream, String charset) {
              final String methodName = "readStringFromStream";
              StringBuffer buffer = new StringBuffer();
              try {
                   int ch;
                   InputStreamReader isr = new InputStreamReader(inputStream, charset);
                   Reader in = new BufferedReader(isr);
                   while ((ch = in.read()) > -1) {
                        buffer.append((char)ch);
                   in.close();
                   return buffer.toString();
              } catch (IOException exception) {
                   Log.printError(this,methodName, exception);
                   return null;
         }And writing it to file:
         public void writeEncodedStringToFile(String text, String filePath, String charset, boolean append){
              final String methodName = "writeEncodedStringToFile";
              OutputStreamWriter writer= null;
              try {
                   FileOutputStream fileOutputStream = new FileOutputStream(filePath, append);
                   writer = new OutputStreamWriter(fileOutputStream, charset);
                   writer.write(text);
              } catch (IOException exception) {
                   Log.printError(this,methodName, exception);
              }finally{
                   try {
                        writer.close();
                   } catch (IOException exception) {
                        Log.printError(this,methodName, exception);
         }Edited by: astlanda on Feb 10, 2009 11:13 PM
    Edited by: astlanda on Feb 10, 2009 11:21 PM

  • How can I change the Chinese characters back to English appear on the bottom icons after clicking the App Store icon on the iPad?  It was in English before I upgrade to iOS5.

    How can I change the Chinese characters back to English appear on the bottom icons after clicking the App Store icon on the iPad?  It was in English before I upgrade to iOS5.

    Is the address on your account based in France ? The language of the stores should reflect the language of the country where your account is based, which isn't necessarily the same language as you've set on the device.
    If your account isn't based in a French spealing country, then try logging out of the account (via Settings > Store) and then log back in (and also make sure that your address is correct and complete), and see if the language of the iTunes and App Store the reflect the language of the country where your account is based.

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

    Dear sirs,
    I am having the following issue in chinese internationalization.when i stored the JSP form parameters(typed in chinese) in database,it stored some kind of junk characters ....and when i displayed ,they showed like SMALL SMALL tables.... in my browser.
    Our project is java based web application.
    Java-1.5
    Mysql-5.0.24
    tomcat-5.5
    JSP-1.2
    servlet-2.0
    browser-mozilla firebox
    I set in my all JSP pages,
    ----->1.<%@ page contentType="text/html;charset="UTF-8" pageEncoding="UTF-8"%>
    ----->2.<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    in my JAVA files,i added,
    ----->String encode=ServletContext.getInitParameter("javaEncoding");
    ----->request.setCharacterEncoding(encode); (it gets encoding UTF-8 from web.xml file)
    In my MYSQL,i set...
    ----->mysql --default-character-set=utf8 -username -password -database
    so,i changed client,connection,results,system charactersets " utf8" and connection collation is "utf8".
    In my DATABASE connection String...i added,
    ------>useUnicode=true&characterEncoding=UTF-8
    In my TOMCAT web.xml file..i added these lines as i am using POST method for form.
    <context-param>
    <param-name>javaEncoding<param-name>
    <param-value>UTF-8<param-value>
    <context-param>
    still .i am unable to display chinese characters in my browser.
    but.when i am using getBytes() for all form parameters in JAVA file....i m able to store chinese in db and dispay in browser ....
    String param;
    ---->String param=newString(param.getBytes("ISO8859-1"),"UTF-8");
    Could anyone tell me another method for displaying chinese except this getBytes()..
    please help me out. i am trying to find out an alternative server-independent method for past two weeks.
    Advance thanks for reading and help.
    mullaimaran.

    Hi one_dane &Mr.Clap,
    Thank you for your help.
    At last i displayed chinese characters with out using getBytes() and web.xml configuration.
    My settings for displaying chinese....
    JSP :
    1<%@ page contentType="text/html;charset="UTF-8" pageEncoding="UTF-8"%>2.<HEAD>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    </HEAD>JAVA(Servlet):
    request.setCharacterEncoding("UTF-8");MYSQL:
    Mysql connection String...i added,
    ----> useUnicode=true&characterEncoding=UTF-8i m using linux terminal for mysql login.
    bash]$  mysql --default-character-set=utf8 -username -password -database nameSo, i changed these settiings in database
    mysql> show variables like '%char%';
    +--------------------------+----------------------------+
    | Variable_name | Value |
    +--------------------------+----------------------------+
    | character_set_client | utf8 |
    | character_set_connection | utf8 |
    | character_set_database | utf8 |
    | character_set_filesystem | binary |
    | character_set_results | utf8 |
    | character_set_server | utf8 |
    | character_set_system | utf8 |
    | character_sets_dir | /usr/share/mysql/charsets/ |
    +--------------------------+----------------------------+and set collation....
    mysql> show variables like '%col%';
    +---------------------------+-------------------+
    | Variable_name | Value |
    +---------------------------+-------------------+
    | collation_connection | utf8_general_ci |
    | collation_database | utf8_general_ci |
    | collation_server | utf8_general_ci |Once again thank you....for help.Keep your assistance in this forum.
    mullaimaran.

  • How to use a select statement with chinese characters?

    I am currently developing a java servlet<using tomcat 4.x> which allows me to use select statement to retrieve results from the Microsoft SQL Server 2000 database. I am using a simple form to get the parameter for querying. The main problem i'm facing is that there are chinese information in the SQL database, but i can't retrieve it through the sql statement with the chinese characters input<thru the form with the help of NJ STAR>in the WHERE condition. When i execute the statement, it returns me no results even though the rows are present in the database.
    Does anyone have the solution to using chinese words in the WHERE clause of the select statement to retrieve results with columns which contains chinese characters? Please help me. Thanks everyone. :)
    PS: when i cut and paste those characters in the sql database and paste onto java.. it is ??? in questionmarks.. but when i paste them into excel 2000.. its shown as chinese chars again..
    please heelppp~~

    Greetings,
    PS: when i cut and paste those characters in thesql
    database and paste onto java.. it is ??? in
    questionmarks.. but when i paste them into excelThis is why the SELECT is not returning any results.
    You need to set the character encoding set on your
    statement and parameters for the characters to be
    properly translated. Refer to the charsetName
    parameter in the String class constructor in your API
    docs and also to
    $JDK_DOCS/guide/intl/encoding.doc.html in your JDK
    documentation.
    2000.. its shown as chinese chars again..Because Office programs are performing the same kind
    of character translation with the appropriate MS APIs.
    please heelppp~~Regards,
    Tony "Vee Schade" Cookis it possible for you to show me some coding examples? i don't really understand what is to be done in order to set the char set and what does it really do.. tried reading up but still dun understand.. :(
    pardon my shallow knowledge of java..
    ok..
    The thing is when i used an insert statement with chinese characters of GBK format hardcoded into the java servlet and then i use the insert statement to insert the chars into the database, it cannot be seen as a chinese word when i off the NJStar. and then it can be searched out with my current form of servlet.. below is my coding of the servlet..
    note: i've set my html file to charset = GBK
    //prototype of Search engine...
    //workable for GBK input and output...
    import java.io.*;
    import java.io.OutputStream;
    import java.io.IOException;
    import javax.servlet.http.*;
    import javax.servlet.ServletException;
    import java.util.*;
    import java.sql.*;
    import java.nio.charset.Charset;
    public class SearchBeta extends HttpServlet {
         private Vector musicDetails = new Vector();
         private String query = "";
         public void service (HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException, UnsupportedEncodingException {
              query = req.getParameter ("T1");
              System.out.println("before:"+query);
              String type = req.getParameter ("D1");//type
              query = req.getParameter ("T1");
              //query = "������";
              System.out.println("after:"+query);
              getResults(type,query);
              System.out.println("locale = :"+req.getLocale());
              res.setContentType ("text/html;charset=GBK");
              PrintWriter out = res.getWriter();
              out.println("<html>");
              out.println("<head>");
              out.println("<body bgcolor = \"black\">");
              out.println("<font face = \"comic sans ms\" color=\"Cornsilk\">");
              if (query.length()==0)
                   out.println ("Please key in your search query.");
              else if (musicDetails.size()==0)
                   out.println ("Sorry, no results matching your search can be found.");
              else {
                   out.println("<center>");
                   out.println("<table cellspacing = \"50\">");
                   int i = 0;
                   //Display the details of the music
                   while (i<musicDetails.size()) {
                        Results details = (Results)musicDetails.get(i);
                        String dbArtist = "";
                        String dbAlbum = "";
                        String dbTitle = "";
                        String dbCompany = "";
                        dbAlbum = details.getAlbum();
                        dbTitle = details.getTitle();
                        dbCompany = details.getCompany();
                        dbArtist = details.getArtist();
                        try{
                             dbAlbum = new String(dbAlbum.getBytes("ISO-8859-1"),"GBK");
                             dbTitle = new String(dbTitle.getBytes("ISO-8859-1"),"GBK");
                             dbCompany = new String(dbCompany.getBytes("ISO-8859-1"),"GBK");
                             dbArtist = new String(dbArtist.getBytes("ISO-8859-1"),"GBK");//correct translation.
                        catch(UnsupportedEncodingException e){
                             System.out.print(e);
                             e.printStackTrace();
                        String dbImage_loc = details.getImage();
                        out.println("<tr>");
                             out.println("<td><table>");
                                  out.println("<img src=C:\\Program Files\\Apache Group\\Tomcat 4.1\\webapps\\examples\\ThumbNails\\"+dbImage_loc+">");
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Artist: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbArtist+"</font></td>");
                             out.println("</tr>");
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Title: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbTitle+"</font></td>");
                             out.println("</tr>");
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Company: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbCompany+"</font></td>");
                             out.println("</tr>");
                             System.out.println("album: "+ dbAlbum);
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Album: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbAlbum+"</font></td>");
                             out.println("</tr>");
                             System.out.println("company: "+ dbCompany);
                             out.println("</table></td>");
                        out.println("</tr>");
                        i++;
                   out.println("</table>");
                   out.println("</center>");
              out.println("</font>");
              out.println("</body>");
              out.println("</head>");
              out.println("</html>");
              out.close();
              //to remove all the elements from the Vector
              musicDetails.removeAllElements();
         //get Searched Music Details and store in Results object which is stored in musicDetails vector
         public void getResults (String type, String searchQuery) {
              try {
                   Class.forName ("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                   Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=music","sa","kokkeng");
                   Statement stmt = con.createStatement();
                   String query = "SELECT * FROM MusicDetails WHERE "+type+" = '"+searchQuery+"'";
                   ResultSet rs = stmt.executeQuery(query);
                   while (rs.next()) {
                        String artist = rs.getString("Artist");
                        String title = rs.getString("Song");
                        String company = rs.getString("Company");
                        String album = rs.getString("Album");
                        String image_loc = rs.getString("Image");
                        Results details = new Results (artist,title,company,album,image_loc);
                        musicDetails.add(details);
                   stmt.close();
                   con.close();
              catch (Exception e) {
                   System.out.println(e.getMessage());
                   e.printStackTrace();
    with the above servlet i created, i can search out the data in the database which i've inserted through the insert statement. I still can't search for things i've keyed into the database directly using NJStar..
    thank you so much for helping.. really hope any one else who knows the answer to this will reply too... thank you all so much...
    -KK

  • Chinese characters in Forms 6i

    Hi Gurus,
    What are the settings required to enter Chinese characters in Forms 6i runtime.
    I am able to type chinese in MS Word. but when i type in Chinese in Forms i get ???????.
    Any help would be appriciated.

    Dhiraj Madan wrote:
    I am able to type chinese in MS Word. but when i type in Chinese in Forms i get ???????.You are comparing apples with toasters here. Just because one Application is capable of displaying UTF-8 characters this doesn't mean another one is capable of displaying UTF-8 characters too.
    What characterset are you using on the client? And what database characterset are you using (as you probably would want to store them in the database too)? Are you using 6i in client/server mode or in web?
    cheers

  • There's a little cartoon and chinese characters in my status bar that I didn't not put there and can't delete

    I recently had my account smurfed,I think it's called-my email was attacked-sent a bunch of emails to friends as if from me---I changed password,etc-no other problems since-but I realized this morning that there's something in my status bar with chinese characters after it(the attack on my email was from Chinese source) and when I put my cursor over it-it doesn't give me any options-doesn't open...I suspect its from the same attacker---what is it? How can I get rid of it?

    From Apple support, I found out this file is in the operating system folder. Apple support is satisfied that it's not a virus because a virus wouldn't be mixed with the operating system files. I only have familiarity with PCs and know that malware frequently disguises itself within the Windows operating system. Are there any out there who are adept with OS X 10.8.2? There must be someone. I mean, people code software for new Macs all the time. Anything would be helpfull: a book, an article--anything. I don't want to spend money on an antivirus program that may not even work and probably also slow down my computer. I went through all the major antivirus programs on my PCs. All of them allowed malware to get onto my computers. And what's worse, they couldn't delete the viruses. They would just give complicated instructions that involved manually editing the registry in Windows. The primary reason I bought a Mac is that I was told at a Mac retail store that I don't need an antivirus program; that the operating system is designed with built in barriers to malware. I thank anyone in advance for help.

  • Cannot Input and Display Chinese Characters by using ODBC Applications

    Dear all,
    I am trying to input the Simplified Chinese Characters in the Oracle Database Ver 9.2 running on a UNIX AIX server. The client application we are using is th MS Access 2003 running on a MS Windows XP English version SP 2 without multi-language pack. MS Office 2003 is also an English version.
    Database setting is:
    NLS_CHARACTERSET=US7ASCII
    NLS_NCHAR_CHARACTERSET=AL16UTF16
    The Oracle Client used is also ver 9.2 with the ODBC driver ver 9.2. I have tried the following NLS_LANG settings by chaging the registry without any NLS_LANG environment settings:
    AMERICAN_AMERICA.ZHT16MSWIN950
    AMERICAN_AMERICA.ZHS16GBK
    AMERICAN_AMERICA.ZHT16HKSCS
    AMERICAN_AMERICA.AL32UTF8
    I have tied to load some Chinese Characters in by sqlload and by using the NLS_LANG AMERICAN_AMERICA.ZHT16MSWIN950, AMERICAN_AMERICA.ZHS16GBK and AMERICAN_AMERICA.ZHT16HKSCS, they can be display perfectly in SQLPLUS. But when using the same NLS_LANGs and display in the ACCESS, only ???? are displayed.
    When I tried to insert Chinese in ACCESS, the character changed to ???? again. No matter what Chinese characters I inserted by MS ACCESS, the ???? code can be dump with the binary code "03, 0f".
    Are there any methods or settings I need to change to make ACCESS an application for inserting and displaying Chinese characters from the Oracle database?
    I have tried to set the Non-Unicode setting in the Windows Locale setting:
    Chinese (Taiwan) (With AMERICAN_AMERICA.ZHT16MSWIN950),
    Chinese (Hong Kong S.A.R) (with AMERICAN_AMERICA.ZHT16HKSCS) and
    Chinese (PRC) (with AMERICAN_AMERICA.ZHS16GBK)
    when inserting the Chinese Characters by Access. But they all failed with ???? inserted in the DB.
    Please kindly advise what should be done.
    Thanks.

    Are you trying to store the character data in char/varchar2 columns?
    If that's the case then you have a problem, since a US7ASCII character set can only handle, well, ascii data.
    If you are trying to store the data in columns of nchar datatypes, then there might be a problem with literals because literals are converted to database character set first, before conversion to national (nchar) character set. Such data loss can also happen depending on how binds or oci calls are performed.
    You could use the dump() function to verify what's actually stored in a database column, without a db - client conversion happening that may distort the facts.
    Example:
    SQL> select col, dump(col, 1016) from table where some_condition;

  • INSERTing chinese characters in SQL*plus

    Db version: 10gR2
    NLS_NCHAR_CHARACTERSET for my DB is AL16UTF16 by which i can store chinese characters. To INSERT using SQL*Plus, i tried to copy and paste some chinese characters from internet. When the characters get pasted, it becomes '?????' (question marks). What else do i have to set to store Chinese characters?
    SQL>  CREATE TABLE EMP2
      2   (EMPNO NUMBER,
      3   ENAME NVARCHAR2(500));
    Table created.
    SQL> Insert into emp2(empno,ename) values(889,UNISTR('????'));
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> SELECT * FROM EMP2;
         EMPNO ENAME
           889 ????

    Actually, it looks like Forums do something strange to URLs pasted into posts. Sorry!
    The thread URL is Re: store/retrieve data in lang other than eng when CHARACTERSET is not UTF8

  • 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

  • Storing chinese characters on Oracle 8.0.6

    My development environment is Oracle 8i (8.1.5), with a database setup with langange/territory/charset as /American/America/US7ASCII. I use the 8i jdbc thin driver in my servlet to store chinese characters to the database and everything is fine. However, in the production environment, somehow I need to use oracle 8.0.6 and the database nls setup is American/America/WEC8DEC, but some (not all) could not be displayed. Is this the wrong nls setup, or due to jdbc driver (8.0.6). Please help!

    Neither your database character set nor your national character set support Chinese characters. Both character sets are set to use the ISO 8859 character set, which only stores English and Western European characters.
    If you want to store Chinese characters in this database, you will need to use a character set that supports Chinese (i.e. one of the Unicode character sets). Since there are no Chinese character sets that are strict binary supersets of ISO 8859-1, changing the character set will generally require rebuilding the database.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for