Displaying/reading multilingual characters

(1) how do you display universal characters in their native character sets? i have a multilingual file containing
chinese, japanese, Korean and english characters (there may be different/more languages). This file is encoded in unicode for development purposes.I need to display these in their proper native glyphs. Problem i encountered was choosing the right font.properties, for e.g. when i use font.properties.ko , korean fonts are display properly but chinese/japanese are not...and when i use font.properties.ja then korean characters are displayed as black boxes.
(2) Given a InputStream containing multi-lingual charactes such as CJK and english, is there a way to find out the locale of the character set. I need this so that numeric information is displayed in the proper local.
i'm using JDK 1.3 on windows 2000 sp2.
any help is greatly appreciated.
thanks

(1) Since the data is already in Unicode, just get a font that can display all unicode characters. Arial Unicode MS is one such font.
(2) Not without some processing.

Similar Messages

  • What's wrong with the built-in keyboard on my macbook? The caps button does not work rite, no matter what letter button i push they all come out capitals and the number keys when pushed display the special characters instead of the numbers!

    the built-in keyboard on my macbook is not functioning right, the number keys when pushed display the special characters instead of the numbers,
    the caps button doesn't work at all, the letter buttons display capitals when pushed whether the caps button is on or off, the shift keys are also out of whack!!
    It seems it somehow got relocated to the "0" button because if you push and hold the zero button down the keyboard seems to operate normally, the number keys display numbers when pushed the letter keys display lower case when pushed but release the zero button and your back in the twilight zone!! Can anybody help me resolve this issue? one more thing im using an external usb keyboard right now and it seems to function properly if that helps any.

    You would do better in the actual macbook pro forums (this is not).

  • The JSP WYSIWYG Editor can't display most Unicode characters

    Eclipse supports display of Unicode characters very well since version 3. However, NitroX couldn't display most most of them. Well, besides characters from other non-Western European languages, NitroX can't even display characters that it's supposed to support. Well, that's what I think so. I mean, when we type the & character, we have the whole list of character entity references amongst which we could find ∧ ∇ ∨ → but which are not displayed correctly. And many more are in this case.
    Is this a feature or a bug? By "feature", it means that we can't get them in free version.

    I have exactly the same problem. I support web pages for 25 European countries. I've not seen Nitrox support any unicode characters. Until M7 answers this question or fixes the editor, you can use the Eclipse editor to see and edit the text.

  • MS Notepad unable to display the Chinese characters I type and display them as squares

    MS Notepad is unable to display the Chinese characters I type and display them as squares. But when I copy those squares on notepad to Wordpad or MS Word, they display the Chinese characters just fine. I've no idea why those Chinese characters I type can't display properly on notepad. I check the font of the notepad and it's the default. I've another Windows Vista desktop computer which has notepad of the similar setting and display Chinese characters just fine. Both are using Chinese (Simplified) - Microsoft Pinyin New Experience Input Style to input those characters. But I don't understand why my Windows 7 is facing this problem.

    Hi,
    Notepad is a very simple text editor BUT it will work if you use the SAME language in Windows. Please try:
    1. go to control panel, click "Clock, Language, and Region"
    2. click "Change location" under the "Region" section
    3. go to the "administrative" tab, then click "change system locale...", then select "Chinese".
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to display double byte characters with system.out.print?

    Hi, I'm a newbie java programmer having trouble to utilize java locale with system io on dos console mode.
    Platform is winxp, jvm1.5,
    File structure is:
    C:\myProg <-root
    C:\myProg\test <-package
    C:\myProg\test\Run.java
    C:\myProg\test\MessageBundle.properties <- default properties
    C:\myProg\test\MessageBundle_zh_HK.properties <- localed properties (written in notepad and save as Unicode, window notepad contains BOM)
    inside MessageBundle.properties:
    test = Hello
    inside Message_zh_HK.properties:
    test = &#21890; //hello in big5 encoding
    run.java:
    package test;
    import java.util.*;
    public class Run{
      public static void main(String[] args){
        Locale locale = new Locale("zh","HK");
        ResourceBundle resource =
            ResourceBundle.getbundle("test.MessageBundle", locale);
        System.out.println(resource.getString("test"));
      }//main
    }//classwhen run this program, it'll kept diplay "hello" instead of the encoded character...
    then when i try run the native2ascii tool against MessageBundle_zh_HK.properties, it starts to display monster characters instead.
    Trying to figure out what I did wrong and how to display double byte characters on console.
    Thank you.
    p.s: while googling, some said dos can only can display ASCII. To demonstrate the dos console is capable of displaying double byte characters, i wrote another helloWorld in chinese using notepad with C# and compile using "csc hello.cs", sure enough, console.write in c# allowed me to display the character I was expecting. Since dos console can print double byte characters, I must be missing something important in this java program.

    after google a brunch, I learned that javac (hence java.exe) does not support BOM (byte order mark).
    I had to use a diff editor to save my text file as unicode without BOM in order for native2ascii to convert into a ascii file.
    Even the property file is in ascii format, I'm still having trouble to display those character in dos console. In fact, I just noticed I can use system.out.println to display double byte character if I embedded the character itself in java source file:
    public class Run {
         public static void main(String[] args) throws UnsupportedEncodingException{
              String msg = "&#20013;&#25991;";    //double byte character
                    try{
                    System.out.println(new String(msg.getBytes("UTF-8")) + " new string");  //this displays fine
                    catch(Exception e){}
                    Locale locale = new Locale("zh", "HK");
              ResourceBundle resource = ResourceBundle.getBundle("test.MessagesBundle", locale);
                    System.out.println(resource.getString("Hey"));      //this will display weird characterso it seems like to me that I must did something wrong in the process of creating properties file from unicode text file...

  • Displaying UTF-8 characters

    Hello all - I'm having a bit of trouble with my current project. I'm adding international support to it, I have an XML file with all the translated strings in UTF-8 format. I read it in using the following code:
              InputStream in = new FileInputStream(name);
              InputStreamReader isr = new InputStreamReader(in,"UTF8");
              BufferedReader br = new BufferedReader(isr);
              StringBuffer buf = new StringBuffer();
              String line = new String();
              while ((line = br.readLine()) != null){
                   buf.append(line);
                   buf.append('\n');
              return buf.toString();The string buffer is then sent off to be chopped up and parsed and displayed. However, for all non-latin characters, I get a question mark in a diamond. this code works in a very similar project, so I'm unsure why it is not working now, when almost all the program components are the same.
    Any ideas?
    thanks!
    Jake

    So the only thing that has changed is the operating system on which you are running this system?
    If that's the case then it's possible that you were (accidentally or otherwise) converting between bytes and strings using the default charset on the non-Apple machine, and this happened to work for some reason. And on the Apple machine perhaps the default charset is different, and that applecart (sorry!) got upset.
    And have you checked that you can actually display non-ASCII characters on your GUI setup from a simple program where you just hard-code those characters?

  • How can Mail of OS X Mountain Lion read Chinese Characters?

    Mail cannot read Chinese characters. Message looks like a series of "??????". However, Safari can read Chinese characters. What setting can make Mail read Chinese Characters?

    Pippi10 wrote:
    Mail cannot read Chinese characters. Message looks like a series of "??????".
    Normally that indicates an encoding glitch, where the email headers are not telling Mail the right encoding to use.  The first thing to try is Message > Text Encoding and see if UTF-8 or one of the various Chinese encodings give the right display.
    Also go to View > Message > Raw Source and tell us what you see in the headers that say "charset=  ".

  • I need a Vietnamese keyboard. Recommendations? A keyboard that officially works with iPad and displays all the characters and their accent marks for typing.

    Where do I find an excellent and reliable Vietnamese keyboard for new iPad? A keyboard that displays all the characters and the accent marks so typing can be easily accomplished. The iPad keyboard selection for Vietnamese really only seems to change the Return key to the Vietnamese language. iPad is sold all over the world....my interest is Viet Nam.....the full keyboard.

    Thanks.....my Vietnamese expert spouse says this tip will work just fine.  I was not aware of the hold down function. Slow typing but accomplishes the objective native on the iPad.
    You are correct.....most Apps that I find seem to be based only on a copy/paste method of input.
    You solved the problem.

  • When I connect my iTouch to my PC (windows 7) an error message is displayed reading "iTunes was unable to load dataclass information from sync services. Reconnect or try again later".

    When I connect my iTouch to my PC (windows 7) an error message is displayed reading "iTunes was unable to load dataclass information from sync services. Reconnect or try again later". I have completely uninstalled and then reinstalled iTunes. I have also completely reset my iTouch to factory defaults. I have even followed all the advice provided previously to other forum member with the same problem. Nothing seems to work. Please help me someone.

    I'm getting the same problem with both my IPad 4 and iPhone 5
    Just started a few weeks back, Since then I have had two Itunes updates.
    Is this something Apple is aware of and trying to fix?

  • 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

  • In Windows, display reads UNMOUNTABLE_BOOT_VOLUME and will not proceed and I can't get back to the OS 10 Mac side of my computer. Help!

    In Windows, display reads UNMOUNTABLE_BOOT_VOLUME and will not proceed and I can't get back to the OS 10 Mac side of my computer. Help!

    buttercup7 wrote:
    Wow, wonderful!  I'm back on the OS X side of my computer and that's a good thing, THANK YOU!!  My next question, if you can help, why did that happen the first place and what can I do to prevent it from happening again?  I would be grateful for any insight you might offer.
    I gave you the link to the Boot Camp documentation, read it carefully, mistakes in BC can have serious consequences.
    If you have not yet backed up your Mac, DO IT NOW.

  • Display non-english characters

    Hi,
    How can i display Japanese, Chinese characters in a java application or applet? do i need some special tools?
    Thanks,
    eileen

    Since Java supports unicode you don't need special
    tools only a font which is able to display japanese or
    Chinese charaters. For Windows:
    http://www.hclrss.demon.co.uk/unicode/fonts.html
    You can display a unicode char with /uXXXX have a look
    at
    http://www.unicode.org/charts/
    Or you already got a file with unicode characters....
    have funThanks for your help.
    But how can i put something down by checking that Unicode table from time to time? That's almost impossible...
    suppose i've put some Japanese characters into a file, what type of file should i save it as? save it as a html file or something else?
    and if i want the context of a label to be "xxxxx"(in Chinese), what should i do? JLabel label = new JLabel("???") how can i put some chinese characters to replace "???" ?
    and how can i input Japanese/chinese characters under Mandrake?
    Thank you very much,
    eileen2

  • Create HTML file that can display unicode (japanese) characters

    Hi,
    Product:           Java Web Application
    Operating system:     Windows NT/2000 server, Linux, FreeBSD
    Web Server:          IIS, Apache etc
    Application server:     Tomcat 3.2.4, JRun, WebLogic etc
    Database server:     MySQL 3.23.49, MS-SQL, Oracle etc
    Java Architecture:     JSP (presentation) + Java Bean (Business logic)
    Language:          English, Japanese, chinese, italian, arabic etc
    Through our java application we need to create HTML files that have to display unicode text. Our present works well with English and most of the european character set. But when we tried to create HTML files that will display unidoce text, say japanese, only ???? is getting displayed. Following is the code we have used. The out on the browser displays the japanese characters correctly. But the created file displays only ??? in place of japanese chars. Can anybody tell how can we do it?
    <%
    String s = request.getParameter( "txt1" );
    out.println("Orignial Text " + s);
    //for html output
    String f_str_content="";
    f_str_content = f_str_content +"<HTML><HEAD>";
    f_str_content = f_str_content +"<META content=\"text/html; charset=utf-8\" http-equiv=Content-Type></HEAD>";
    f_str_content = f_str_content +"<BODY> ";
    f_str_content = f_str_content +s;
    f_str_content = f_str_content +"</BODY></HTML>";
    f_str_content = new String(f_str_content.getBytes("8859_9"),"Shift_JIS");
    out.println("file = " + f_str_content);
              byte f_arr_c_buffer1[] = new byte[f_str_content.length()];
    f_str_content.getBytes(0,f_str_content.length(),f_arr_c_buffer1,0);
              f_arr_c_buffer1 = f_str_content.getBytes();
    FileOutputStream l_obj_fout; //file object
    //file object for html file
    File l_obj_f5 = new File("jap127.html");
    if(l_obj_f5.exists()) //for dir check
    l_obj_f5.delete();
    l_obj_f5.createNewFile();
    l_obj_fout = new FileOutputStream(l_obj_f5); //file output stream for writing
    for(int i = 0;i<f_arr_c_buffer1.length;i++ ) //for writing
    l_obj_fout.write(f_arr_c_buffer1);
    l_obj_fout.close();
    %>
    thanx.

    Try changing the charset attribute within the META tag from 'utf-8' to 'SHIFT_JIS' or 'utf-16'. One of those two ought to do the trick for you.
    Hope that helps,
    Martin Hughes

  • Cannot read foreign characters!!!

    Requirement: Read a text file containing foreign characters and print it/ store it in string buffer
    Problems: Doesnt work, and throws exception whenever Reader.read() or BufferedReader.readline()
    method is envoked...
    How do i get arround this?
    Here is a sample text from the file...
    Ang�ende utleggelse av kopierte lydfiler i CVS8 format via internett � f� fjernet p� denne e-mail n�dt til � bemerke
    here is the sample program:
    import java.io.*;
    public class LoadUTF8 {
         private static String _FILE = null;
         public static void main(String args[]) {
              _FILE = args[0];
              try {
                   System.out.println(getUTF8());
              catch(Exception e) {e.printStackTrace();}
              try {
                   loadUTF8Data();
              catch(Exception e) {e.printStackTrace();}
         public static String getUTF8() {
              StringBuffer buffer = new StringBuffer();
              try {
                   FileInputStream fis = new FileInputStream(_FILE);
                   InputStreamReader isr = new InputStreamReader(fis, "UTF8");
                   Reader in = new BufferedReader(isr);
                   int ch;
                   while ((ch = in.read()) > -1) {
                        buffer.append((char)ch);
                   in.close();
                   return buffer.toString();
              } catch (IOException e) {
                   e.printStackTrace();
                   return null;
         public static void loadUTF8Data() {
    try
                   InputStream in = new FileInputStream(_FILE);
                   BufferedReader reader = new BufferedReader(new InputStreamReader(in, "UTF8"));
                   String line = null;
                   StringBuffer buffer = new StringBuffer();
    while ( ( line = reader.readLine() ) != null ) // Read line until EOF
    buffer.append( line + "\n" );
    System.out.println("" + buffer.toString() + "");
              catch(Exception e) {
                   e.printStackTrace();
    Error Message:
    sun.io.MalformedInputException
    at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:110)
    at java.io.InputStreamReader.convertInto(InputStreamReader.java:137)
    at java.io.InputStreamReader.fill(InputStreamReader.java:186)
    at java.io.InputStreamReader.read(InputStreamReader.java:249)
    at java.io.BufferedReader.fill(BufferedReader.java:139)
    at java.io.BufferedReader.read(BufferedReader.java:157)
    at mtrack.cda.utils.LoadUTF8.getUTF8(LoadUTF8.java:25)
    at mtrack.cda.utils.LoadUTF8.main(LoadUTF8.java:15)
    NB:- It works fine with normal text files that doesn't have any foreign character!
    If either of getUTF8() or loadUTF8Data() functions work, i will be very happy!!! :-)

    Hi Pratim,
    Your code is absolutely correct and can be adapted to read in any foreign characters as long as you create your InputStreamReader with the same encoding that was used to write the file you are trying to read. By default, java encodes files in a format called Cp1252. Cp1252 can be used to encode ASCII characters (\u0000->\u007f) + an extended region (\u0080->\u00ff). This extended region contains, among other characters, the extra characters used by languages like Spanish, German etc. To read such a file, change your code to:
    InputStreamReader isr = new InputStreamReader(fis, "Cp1252"); However, if one wants to encode characters beyond \u007f (for example, Chinese, Hindu, Russian etc.) then one cannot use Cp1252 encoding. Frequently, such characters are encoded using UTF8 (Unicode Transformation Format 8). UTF8 is capable of encoding the entire unicode character set. There are many many different encodings supported by java. The point is that you must to use the same encoding to read back the characters as was used to store them.
    I suggest that you experiment with writing characters to files and reading them back into java using different encodings. You already have the code to read the characters. To write the files, you can either use Microsoft Word or you can write code analogous to your code above except using the OutputStreamWriter. It will also be helpful to you if you have some way of examining the bytes in your output files.
    Regards,
    Joe

  • How to read Chinese Characters in iTunes?

    Hi all,
    Is there anyone who can enlighten me on how I can read chinese characters in iTunes? I have quite a number of Chinese songs that I wish to be played in iTunes, but I noticed that it does not read the chinese song titles and had small rectangles in place of the chinese characters.
    I tried using a third-party software lke NJStar, but the chinese characters resulted were crammed together and were not legible.
    Please help. Thanks.

    now instead of small
    little squares, there are funny symbols and letters
    that don't make any sense whenever there are
    supposedly chinese characters.
    That probably means that the id3 tags on your songs are not encoded correctly. I understand that the program ConvertZ can help fix this.

Maybe you are looking for

  • Problem with exporting back to LR from PS

    I exported a photo to PS as always for and edit but when I was done it didn't go back to LR. I can only open from PS. How do I get it back to LR and why did this happen?

  • Simple css nav type scaling

    I am creating a simple nav using "ul" and "li" tags all of which have classes attached to them. I have put in place a reset.css. the nav has inline elements attached to the <a> tag. I give the link a type size yet they get bigger when previewed in a

  • Resetting System Preferences

    I think, or rather know, this is pretty simple. I know because I was told how to replace or get rid of system preferences by an Apple tech when I first bought this Mac Pro (09 Quad). Alas, I didn't write it down at the time as I was in panic mode in

  • Hook Macbook to Sylvania TV

    Hi all, I'm very uncomputery, and hoping you can help me. Is there a way to hook my MacBook up to my Sylvania TV? My MacBook is Model Name: MacBook Model Identifier: MacBook5,1 Processor Name: Intel Core 2 Duo Processor Speed: 2 GHz The TV is: Sylvan

  • Scratched screen on iPad

    I have had an iPad 2 for about 18 weeks, and during those 4 and a half months the screen on it has cracked 4 times. So total I have only had my iPad, with me, for about a month. I use it for school so that hasn't helped me a lot. The first three time