Korean character handling java

hi friends
I want to print korean charaters in a text file.Please help
or any link haveing example related to this
thanks

ChuckBing wrote:
See
http://java.sun.com/javase/technologies/core/basic/intl/
http://java.sun.com/docs/books/tutorial/i18n/index.html
Please read through these and then if you still have doubts, please ask specific questions and give details.
Are you trying to read korean chars from a text file and printing them to a JSP or is it a swing app ?
or ??

Similar Messages

  • Korean character set

    Hi all,
    I am having a problem like,
    My project uses the J2EE Application Model,
    The problem is , if i made a entry to the site(project) in korean character set, the characterset was broken and gets stored into the database.I am using the korean characterset in the Oracle 8i.I guess there should be no problem with the database.The problem is with the parsing of characters by java applications.
    Kindly advise me on the above....
    Thanks,
    Regards,
    jay...

    Hi ,
    ksheeraj, Thanks for ur reply.
    I got ur point.
    But the entire website is in korean language.
    All the datas has to posted and populated in korean language.The insert of korean characters into the database is fine.The database accepts the korean encoding and gets stored properly.
    I am getting problem, in dynamically generated pages, and problem while loading the database values into a combo box like that.
    Kindly help me in fixing the problem.
    Thanks....
    Regards,
    jay...

  • Inserting Korean character

    We have an oracle 10g DB on Sun Solaris with NLS_CHARACTERSET=KO16KSCCS and NLS_NCHAR_CHARACTERSET=AL16UTF16.
    I am connecting to this DB using SQLPLUS.
    Create table t1 (COL1 INTEGER, COL2 VARCHAR2(30));
    My questions are
    1.     How to insert values to this with KOREAN Character to COL2?
    I should see the same character when I do the select after the insert.
    2.     How do I do this from Java program?

    Hi there!
    WE8ISO8859P1 is a character set that is not Euro enabled.
    (see Appendix A of the Oracle 8i National Language Support
    Guide for Euro-enabled character sets).
    I see a couple of possible approaches to solving your
    problem:
    1.) recreate the database with a unicode characterset.
    2.) If 1 is not an option, try defining the column that
    needs the Euro symbol inserted as NCHAR or NVARCHAR2
    and define a (euro-enabled) national character set
    via an environment variable.
    For further details pleas check the "Oracle 8i National Language
    Support Guide".
    Hope that helps.
    All the best
    Michael A. Istinger

  • How to handle Java popup in oracle forms application through Open Script?

    I want to record and test oracle form application but it popup java dialogue box and Open Script can't handle java object.
    So how to handle the Java popups in forms application?

    Hi, Have you been able to resolve this?

  • Strange folder appearing, named with Korean character 삔

    Quite often I have a folder turn up at the bottom of the list on my HD. It is labeled with a Korean character 삔 meaning "sprained" (as far as I can work out). There's never anything in the folder so I just trash it.
    It's no big deal but it's a curious aberration.
    Anyone have the same issue?

    I also have that folder. Every time I delete it, it appears several days later. What's going on? anyone could solve this problem?

  • How to instance handler.java into servlet

    Hi
    I don't have much experience in servlet.
    I want to instance a handler.java which connects to database and has all sort of methods into a servlet. But I don't know how to do it as servlet is different from normal java files or jsp .
    Can anyone help?
    Thanks
    M

    A servlet is just a normal Java class and you can instanciate Objects in the Servlet like you would in any other Java class. That is import the class, declare the reference and then do a new on the class.
    The only caveat is that Servlets are multi-threaded so it is best to not have any class level objects unless they are thread safe.

  • About Korean character

    Hi,
    Could anyone advise me about SAP does not display Korean character?
    One example we attempted in AS91 description.
    The one displayed in SAP is B200 37?2431
    How to enable Korean Character input and display in asset description in SAP system.
    Thanks with best regards,
    Bird

    gss2 wrote:
    I get correct spellings in Greek on my iphone but not on my Lion set up.
    That's because there is no Greek spell checker in Lion yet.  You need to get the dictionary elsewhere:
    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

  • Handling Character Entities - Java Mapping Issue

    Hi Experts,
        I need to replace the character entities in my input XML. But, the problem is the java mapping I've written isn't replacing  the character entities as expected.  For example if my input XML  contains <NAME>&><XYZ</NAME>, then the ouput is <NAME>&amp:&gt:<0001&lt:/NAME>, whereas it should be <NAME>&amp:&gt:&lt:0001</NAME>.
    Note: I've used : instead of ; just to show it properly SDN.
    Can any of you share the code for the same if you've used it already?
    Thanks a lot in advance.
    Regards,
    Hussain.

    Hi Pooja,
        Thanks for your prompt reply.
    Are you trying to use the java mapping just to handle the character entities or your interface itself only has a java mapping?
                   - I'm using Java Mapping just to handle the character entities. Say my input XML looks like
    <?xml version="1.0" encoding="UTF-8"?>
    <resultset>
    <row>
    <ID>&<1</ID>
    <MESSAGE><![CDATA[<?xml version="1.0" encoding="UTF-8" ?><LGORT>&<0001</LGORT>]]></MESSAGE>
    </row>
    </resultset>
    I need to replace &< in <ID> to &amp:&lt: and similarly for CDATA <LGORT>&amp:&lt:0001</LGORT> before I process it in XI. In my java mapping I read the whole XML as string (line by line as mentioned below) and try to replace the character entities using some logic, which isn't working properly.
    StringBuffer buffer = new StringBuffer();
    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
    for (String lineRead = reader.readLine(); lineRead != null; lineRead = reader.readLine()) {
           buffer.append(lineRead);
    I've also checked the thread mentioned by Srinivas. But, StringEscapeUtils.escapeXml() would replace all the character entities like &lt:?XML... , which would result in an invalid xml...
    Please suggest.
    Thanks,
    Hussain.

  • How to handle user-defined character in java??

    Dear all,
    i am new to internalization and localization.
    i am now porting an application from vb.net to java.
    the vb.net version can handle (input/output [to file, screen, database] ...etc) user defined character (charset is big5 + extra characters) transparantly.
    what i need to do is update the file EUDC.tte in windows (which seems have native charset codepoint to unicode codepoint info) ..
    could anybody tell me how can i achieve the same thing in java??
    thank you.
    lsp

    pslkwan wrote:
    Hi DrClap,
    it seems i need to write CharsetProvider, charsetdecoder, charsetencoder...etc...
    do you have example / sample for me to follow???? I googled for "java charsetprovider example" and got one as the first hit.
    btw, is it possible to replace the default big5 charset implementation with my own one so that the existing code can take advantage of the my own charset classes???You don't want to replace the default, just specify which one to use when needed. Pretty much any operation that involves charsets lets you specify which one to use. If your current code relies on the default, then you should change that.

  • How to handle Multibyte character in Java urgent requirement

    Hi Friends,
    I'm fetching the data from the database(MS SQL Server 2000) and writing into the file.
    This is the snippet of the code i'm using to write into the file.
    File outputFile = new File("C:\\Temp\\SAMPLE.txt");
    BufferedWriter fileWriter = new BufferedWriter(new FileWriter(outputFile));
    //Fetching the values from database
    while (rs.next())
    //colData contains the value from the database which will go into the file
    String colData = rs.getString(fieldNames);
    fileWriter.write(colData);
    The problem is when I'm writing a multibyte� �� character is converting into double quotes,
    i.e. M?�L INC. is written as M?"L INC.
    I need to know how can I write the same value what I'm fetching from the database( irespective it is singlebyte or multibyte characters ).
    Thanks in advance.
    Kind Reards,
    Pallavi

    Hi,
    I changed the default encoding, Windows1252 to UTF-16 using OutputStreamWriter class and it worked out!
    OutputStreamWriter out = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream("C:\\abc.txt")), "UTF-16");
    Thanks for the suggestions. :)

  • Special Character Handling (&) in the payload content in PI 7.1

    Hello All,
    My Scenario is Idoc to File. I need to handle some special characters like "&" in  XML payload content in PI 7.1. I am receiving & character in the text field.
    eg:
    <RECORD>
       <BEGDA>20100901</BEGDA>
       <STAT1>A</STAT1>
       <NAME1>Grandview&MO CLMR</NAME1> 
      <PERL_SUB_AREA>0005</PERL_SUB_AREA>
    </RECORD>
    I created java mapping by using the blog: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420. [original link is broken] [original link is broken] [original link is broken]
    "The code used in java mapping is converting & into &amp"
    Mapping is working fine in the test tab of Operation mapping and the message is successfully handling the record with & character(message with Chequered Flag).In the result tree view,it is showing 
    <PERL_TEXT>Grandview&MO CLMR</PERL_TEXT
    and in the source XML view
    <PERL_TEXT>"Grandview&ampMO CLMR"</PERL_TEXT>
    Issue:
    Now the record is written as
    <RECORD>
      <CUST_STATUS>A</CUST_STATUS>
      <COMPANY>1050</COMPANY>
      <PERL_AREA>1MOB</PERL_AREA>
      <PERL_TEXT>"Grandview&ampMO CLMR"</PERL_TEXT>
      <PERL_SUB_AREA>0005</PERL_SUB_AREA>
    </RECORD>
    Since & is coming as part of text, "it is converting & -> &amp" in the text field and the record is written in the file as
    "A|1050|1MOB|Grandview&ampMO  CLMR|0005 ....."
    While it should come as:
    A|1050|1MOB|Grandview&MO  CLMR|0005 .....
    Java mapping code used is as:
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    public class HandleAmpersand implements StreamTransformation {
         public void setParameter (Map param) { }
         public void execute (InputStream in, OutputStream out) {
              try {
                   int read_data;
                        while ((read_data = in.read() ) != -1) {
                             if (read_data != '&') {
                                  out.write(read_data);
                             } else {                         
                             out.write("&amp;".getBytes());
                        out.flush();
         } catch (Exception e) {  }
    Also, i am using message mapping after java mapping in operation mapping
    Please guide me where it is going wrong.
    Thanks
    Shikha Jain
    Edited by: Jain Shikha on Jan 5, 2011 4:42 AM

    Hi Jain Shikha,
    I have faced similar issue in our production system.
    Our issue:-
    Sender system is sending :- DEKOR " OBS!
    Other middleware is converting it and sending to SAP PI as :- DEKOR &amp ;quot; OBS!
    Because of this, there is increase in size from 12 characters to 21 characters. We were getting error as the target side ABAP table has column width 15.
    Our solution:- Wrote a java mapping to convert &amp;quot; to u201C
    if (strContent.contains("&")) {
                        getTrace().addInfo("& is present");
                        strContent = strContent.replaceAll("&amp ;", "&");
                        strContent = strContent.replaceAll("&quot ;", "\"");
                        strContent = strContent.replaceAll("&apos ;", "\'");
                        strContent = strContent.replaceAll("&amp ;", "&");
                        strContent = strContent.replaceAll("&lt ;", "<");
                        strContent = strContent.replaceAll("&gt ;", ">");
    Note: - quote ("), apostrophe ('), ampersand (&), less than (<), greater than (>) are special characters in XML. They should not be present in data. http://www.w3.org/TR/REC-xml/
    Not Well formed XML:
    <Name>Raghuu2019s</Name>   <Name> Raghu & Vamsee </Name>
    Well formed XML:
    <Name>Raghu&apos;s</Name>   <Name>Raghu &amp; Vamsee</Name>
    Graphical mapping, XSLT, DOM, SAX need well formed XML as input, otherwise they give parser exception.
    Your solution:-
    I understand you are using a graphical mapping. Follow below steps
    Step 1: Convert u201CNot Well formed XMLu201D to u201CWell formed XMLu201D, using java mapping (which your doing already).
    Step 2: Use Graphical mapping for your transformation logic.
    Step 3: Again convert back u201CWell formed XMLu201D to u201CNot Well formed XMLu201D (As this what target system is expecting. Use below java mapping.
    Regards ,
    Raghu
    Edited by: Raghu Vamsee on Jan 6, 2011 1:45 PM
    Edited by: Raghu Vamsee on Jan 6, 2011 1:59 PM

  • Problem with new-line-character and java.io.LineNumberReader under AIX

    Hi folks,
    I got the following problem: I wrote a little parser that reads in a plain-text, tabulator-separated, line-formatted logfile (and later on safes the data to a 2-dimensional Vector). This logfile was originally generated by an AIX ksh script, however, I copied it on my Windows machine to work with it (for I'm using a Java editor that runs under Win Systems).
    For any reason, Windows, and what is worse Java too, seems not to recognize correctly the new-line character (in the API it is written that this should be a newline '\n' or a carriage-return '\r' or one followed by the other) that marks the end of a line in the logfile.
    Also, when I'm opening the logfile with the "Notepad"-editor, this special character does not seem to be recognized, every line is inserted right after the other.
    On the other side, when I open the logfile with the built-in editor in the CMD-Shell ("Dos-shell"), the newline chars seem to be recognized correctly.
    But when start my parser on the AIX-machine the newline does not seem to be recognized correctly again.
    I tried to read in the logfile with MS-Excel and safe it as a plain-text, tabulator-separated, line-formatted logfile again, with such files my parser works fine both on the AIX as it does on Windows.
    Any ideas? Anybody got over the same problem already?
    Greetz FK

    Under windows, text files' lines are usually delimited by \r\n,
    under Unix/Linux/AIX etc. \n
    and under Mac \r.
    I recommend to use the following editors, which are capable to handle files with Unix and Windows-styled line-delimiters or convert between these types:
    Programmer's File Editor (PFE; available on Windows)
    The Nirvana Editor (http://www.nedit.org/; available on Unix, MAcOS, Windows)
    (BTW good old vim can handle that too. Transferring text files to windows in order to edit them, even using Excel for this purpose means your being a UNIX newbie, (I mean no offense by writing this) so vim is probably beyond your reach for the moment.)
    Java normally assumes the platform's line delimiters where it is running, so if you transferred the file from Unix to Windows might be distrurbing.

  • Request.getParameter(): special character handling problem

    Hello, there:
    This should be an easy question for the gurus in here.
    I use a string attached to the url as the parameter string, which includes spaces. the system automatically converts them to %20, but when I receive them in my servlet using request.getParameter, a special character, &Acirc; appears; I couldn't proceed with it.
    I suppose this is a common problem but seems that I didn't find topics about it on this forum.
    So anyone can help? Any encoder/decoder APIs to handle it?
    Thanks a lot,
    Sway

    hi,
    escape can solve ur problem
    use js function to submit form like
    function subForm()
    var any_spcl_value ="kdfhjdf$%@#$% 2FGSFG @%@#%@# V";
    mainForm.action = "index.jsp?value="+ escape(any_spcl_value);
    mainForm.submit();
    and use request.getParameter("value");
    u ll get kdfhjdf$%@#$% 2FGSFG @%@#%@# V as it is.
    AE

  • Multibyte Character handling in Upload

    Hi Everyone,
    We had handled the multibyte character on uploading a CSV file converting BLOB to NCLOB instead of earlier BLOB to CLOB.  This worked fine as per our requirement but issue arised with the performance.  A file that was loading in 20 seconds, was loading in more than 7 minutes.
    Please let us know if there are any equivalent of NCLOB usage to handle multibyte character without compromising on the performance of the upload.
    Any suggestions appreciated
    DB Version used is 11g
    Regards,
    Sunil

    Hi Sunil,
    Even I am facing the same problem.
    Using BLOB to NCLOB is degrading the Performance.
    Can anyone help here.
    DB version is 11G.
    Regards,
    Animesh

  • To display chinese/japanese language Character filename - Java Programming

    In Our application supports to upload a file with name in chinese/japanese language Character. When user tries to download filedownload dialog box is appearing with the filename as junk characters.
    How to solve this issue to display the filename as uploaded.

    Have your tried googling your problem?
    I found this article: [http://www.chinesecomputing.com/programming/java.html|http://www.chinesecomputing.com/programming/java.html] That seems promising, but ofcourse I cant tell if it will work on your application without seeing a shred of code.
    Im certain there is others that has had the same problem before, and put up their solutions on the net.

Maybe you are looking for