Download korean characters to file

Hi,
I'm trying to download data which is in Korean into a file. The database character set is AMERICAN_AMERICA.UTF8. I am using the UTL_FILE functions to create the file. I tried converting the text to unicode and creating a unicode file.
When I open the created file in Word, it is still not using Korean characters. Am I testing this correctly? How can I check that the unicode file is correct? Is my convert function used correctly?
Here's the code I've been testing on:
(Column1 has datatype NVARCHAR2(2000))
set serverout on
DECLARE
g_file UTL_FILE.FILE_TYPE;
g_file_dir varchar2(200) := '/eft';
ls_gary nvarchar2(100);
BEGIN
g_file := UTL_FILE.FOPEN_NCHAR(g_file_dir,'TESTFILE','w');
FOR x IN (select CONVERT(COLUMN1,'UTF8','WE8ISO8859P1') bankname
FROM table1 ) LOOP
UTL_FILE.PUT_LINE_NCHAR (g_file,x.bankname);
EXIT;
END LOOP;
UTL_FILE.FCLOSE_ALL;
END;
Thanks,
Carol

Korean characters cannot be represented in the ISO-8859-1 character set, so the convert function will certainly cause problems.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Reports Builder - problem displaying Korean characters

    Client-server setup (database 10G unicode AMERICAN_AMERICA.AL32UTF8, client Windows XP AMERICAN_AMERICA.WE8ISO8859P1) and users have no trouble viewing characters in the application using forms.
    But running the reports through Reports Builder creates inverted question marks instead of Korean characters. The reports are not displayed on the screen, but saved into *.csv file on the server.
    My question:
    1. Is Reports Builder Unicode compliant?
    2. If yes - where and how do we set up the correct NLS_LANG?
    3. If not - what is the solution?
    Thanks, Veronika

    But running the reports through Reports Builder
    creates inverted question marks instead of Korean
    characters. The reports are not displayed on the
    screen, but saved into *.csv file on the server.Is the Windows where you run Reports Builder Korean? What is the Windows Code page (ACP)?
    What version of Reports Builder / Developer Suite?
    You are not running the same report through a Reports server?
    In a general sense, for oci apps, there's a conversion from database character set to client character set when retrieving the data (to match client environment/locale), and likewise a conversion to the database character set when storing character data.
    With Korean (Hangul) characters in the db, these characters should be converted to replacement character such as inverted question mark (¿) when retrieved to a client with character set Latin-1 (iso 8859-1) - since its repertoire includes no Korean characters.
    So, if the client side os is code page 949, you could try indicating a client character set of KO16MSWIN949. (You could try also by "lying" if the code page is different, but then you need to take care to set NLS_LANG as needed as it might affect other apps.)
    Also, read this chapter of the Globalization Support Guide:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch2charset.htm#i1006750

  • UNICODE Problem when Download to TXT/ASC file.

    Dear Experts,
    Due to the Unicode system takes each chinese character as a byte, the field(10) can take 10 Chinese Characters, not like before only 5 characters allowed.
    The problem is when the data is downloaded to a txt file, the field ,length 10, contained Characters, is displayed 10 chinese characters(that's 20 bytes in txt file). It causes the displayed field length are varied between the definition length of field and the actual output.
    ex.
    102’†•¶ŽšŒ^‘ª00012345       --> the output I actully want.
    102’†•¶ŽšŒ^‘ª     000012345  --> unicode makes this in txt file, lenth 10, fill 5 characters but still leave 5 space.
    How to make system take the chinese characters as 2 bytes when download....or any other better idea for this?
    anyone who can solve this, that's life saving..!!!
    thanks in advnace.

    Sorry, the chinese chararcters cannot display properly,
    so just assume each '@' as a chinese character. Five chinese Characters should occupy whole field length(10),
    but Unicode makes it like line 2, still leave 5 space culomn behind(using  to represent the empty column).
    ex.
    102@@@@@00012345      --> the output I actully want.
    102@@@@@000012345 -- the actual output.
    thanks.
    Message was edited by: Ching Heng Ling

  • UNICODE Problem when Download/Upload from ASC file.

    Due to the Unicode system takes each Chinese character as a byte, the field(10) can take 10 Chinese Characters, not like before only 5 characters allowed.
    The problem is when the data is downloaded to a txt file, the field ,length 10, contained Characters, is displayed 10 Chinese characters(that's 20 bytes in txt file). It causes the displayed field length are changed.
    ex.
    text = '12@@@@@00012345'.
    text = text+0(12) --> display '12@@@@@' the output I actually want.
    text = text+0(12) --> display '12@@@@@00012' Unicode makes this in txt file,
    the Chinese characters cannot display properly, so just assume each '@' as a Chinese character.
    How to make system take the Chinese characters as 2 bytes when download....or any other better idea for this?
    anyone who can solve this, thanks in advance.

    Hi Prashant and Uwe,
    Thanks for your help. I used 'GUI_UPLOAD', but it still doesn't work.
    'Text1' still equal to '12@@@@@00012' , not '12@@@@@'
    My test problem as below:
    data: l_file type string.
            text1(20) type c.
    DATA: BEGIN OF T_FICH OCCURS 0,
             LIGNE(5000),
          END OF T_FICH.
      l_file = P_SOURCE.
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                FILENAME            = l_file
               FILETYPE            = 'ASC'
               HAS_FIELD_SEPARATOR = 'X'
               Read_By_Line        = 'X'
                CODEPAGE            = '8400'
           TABLES
                DATA_TAB            = T_FICH
           EXCEPTIONS
                OTHERS              = 99.
    LOOP AT T_FICH.
       text1 = T_FICH-LIGNE+0(12).
    ENDLOOP.
    Could you give me some advise about this?

  • Chinese and Korean characters not displaying in navigation pane

    I have an issue with Chinese and Korean characters not displaying on the tabs in the navigation pane:
    I have 2 RoboHelp projects (using RoboHelp 8 with the updates installed) to generate WebHelp, one in Simplified Chinese, the other Korean. The HTML files, .HHC and .HHK were sent out for translations. I have set the appropriate language in the project settings, everything almost works, except for the text on the Contents, Index, and Search tabs. (I'm not using a skin.) I have read in various threads that the lng file should be edited using the RoboHelp interface, and this seems to be the crux of the problem. The characters do not display correctly through the RoboHelp UI.
    The computer on which I generate the WebHelp is Windows Server 2003, and I do not have the language packs installed. (And am having problems getting hold of the language packs to install to see if this fixes the problem.)
    Aside from installing the language packs, is there anything else I can try to help resolve the problem? (The characters in the content are displaying as expected.)
    Any assistance is greatly appreciated

    Perhaps something in the Translation Info section of this page might help? (The specifics are for Japanese, but I believe the issue would apply to all double-byte languages).
    http://helpware.net/FAR/far_faq.htm#JapComp

  • Itunes can't read korean characters since switching to google chrome

    I switched to google chrome and for some reason every song with Korean hangul characters on my itunes turns into square boxes. I have songs with Japanese kanji on my itunes but I see them perfectly, it's only Korean characters.
    This happened before but I switched back to firefox (which solved the problem). I really don't wanna go back to firefox though...is there any way to fix this?

    Eduardo Kim hello,
    If you select the iTunes Icon in your applications folder and get info you will see the Languages tab check and see what is available... to get the correct Korean version as there is more than one start system preferences and choose international > languages... use the help files to find what you need to know by clicking on the Question mark...
    Take care Eduardo ... TP

  • Korean characters not displaying on itunes

    I transferred my korean music to my macbook from windows computer...In my folder or file, it shows in Korean perfectly fine with no gibberish language. However, when I open them in itunes, in itunes a couple of the songs do not display in the korean characters..instead it shows in gibberish and I don't know how to fix this. Do i have to individually change the songs that are like that ? Not every song is like this. Majority of my songs are fine showing in korean language properly in itunes, but only a select number don't...Please tell me how to fix this. I already tried the ID3 Tags and REverse Unicode. Any other options??

    Everything depends on your NLS parameters. If I do this on Oracle 11g I get:
    select chr(203) from dual;
    C
    ËFor bar coding you should use a special bar code font, e.g.:
    http://www.idautomation.com/font-encoders/oracle-reports/

  • Korean characters in XML

    Hi All,
    Actully am facing probelm when creating XML with korean language characters. Those characters are converted to some junk characters.
    Editor which is used to open the XML is supporting for korean languages.
    With that XML file am creating PDF by using FOP 0.93. So all the junk characters are reflected in PDF. To display multi lingual characters in the PDF am using ArialUni code in xsl. Am configuring this to FOP.
    Still am unable to get korean characters properly.
    while creating XML, whether we need to specify any encoding type for output stream, then where I have to mention that.
    for creation of tag am using the following statements.
    transformerHandler.startElement("","",tempFieldName,attributes);
                   transformerHandler.characters(tempFieldValue.toCharArray(),0,tempFieldValue.length());
                   transformerHandler.endElement("","",tempFieldName);
    I think the problem is at the time of creating tag, am calling to toCharArray() method, may be this is the problem
    Please help me to get it resolve
    Edited by: Palla on Nov 21, 2007 1:45 AM

    Palla wrote:
    while creating XML, whether we need to specify any encoding type for output stream, then where I have to mention that.You mention that where you create the output stream. The best thing is to use UTF-8 or UTF-16 as your encoding. To cause an encoding to be used, the best way is to use an OutputStreamWriter:OutputStream = // wherever you are writing your XML to
    Writer out = new OutputStreamWriter(yourOutputStream, "UTF-8");and then write your data to that Writer.

  • Problem in storing korean Characters in Oracle 10g

    Hi All,
    Below are the current setup.
    OS : Windows
    Oracle Version : 10G
    Database Character Set : AL32UTF8
    NLS_LANG = KOREAN_KOREA.KO16MSWIN949 (in windows)
    I can able to see Korean characters in MS Word & MS Excel. I copied some of the korean characters
    and pasted in notepad and saved the file in UTF format. I tried to insert that data using sql loader.
    After inserting the data, I could find only unknown characters with lots of ??? symbol. I have also
    changed the data fonts to korean language in TOAD. But I can find only non-korean characters in
    the table.
    Please advise me, whether any other settings to be changed or provide step-by-step procedure to store
    the korean data in database.
    Regards,
    Ramesh

    Unable to insert Korean Language in Oracle 10g

  • Displaying Korean Characters on my jsp

    I would like to display korean characters in my jsp....the characters that i want to display are read from an xml file using the sax parser... how will i do this?

    Case 1 - In a JSP only.
    In a JSP you need to set the following and it will display your respective charset. Substitute xxx for your required character set.
    <%response.setContentType="charset=xxx"%>.
    Case 2 - In an XML file and JSP
    If you have an XML file, be sure to define the encoding. Be sure to change the encoding to your Korean charset.
    <?xml version="1.0" encoding="ISO-8859-2"?>
    You will the need to write an XSL which you can apply to your XML file using Xalan and output the resulting HTML in a JSP. I assume your user-agent will be a web browser, although you can use WML, cHTML and VoXML or even another XML file.
    Rajesh Thiharie
    New Delhi, India
    91 124 6455511 x 109 Work

  • Can't see korean characters in flash 10

    I have my language/local set to Korean; also, I.E 8 has encodings for utf-8 set. (Same problem when viewed in Firefox vs 2.0.0.12) It is an English version of Windows XP, SP2 (all the latest patches installed - excluding SP3) This problem exists with a number of web sites; the attached file shows an example: the flash display (located line +5 from the top) does not display korean characters in the right box, yet, the left box is fine, note, this problem is illustrated elsewhere on this page. the URL is www.mnet.com  Although I am illustrating this problem with a 'community' web site, I have the same problem on my employer's web site; and therefore, I would apprecate valuable responses as to how to address this problem. thanks. B.

    I have found the answer. It turns out that the option on the Advanced tag under regional options correct this problem; also corrects a similar problem I had with alpine emailer not displaying Korean.  thanks to all who may have read and thought about this problem.

  • Upload Korean Characters using GUI_UPLOAD/WS_UPLOAD

    Hi,
    I have a problem in uploading Korean Characters.
    When I gte the data in WS_UPLOAD it is not showing properly .
    I did the following :
    1) Changed Code Page to 8500 - Korean.
    2) Logged in Korean Language.
    3) Used Code Page 8500 in Korean Characters as parameter.
    4) Tried to use file type - UTF8, Unicode.
    But I am not using Korean OS .
    Pleas let me know if I am missing somehting.
    Thanks,
    Vijay.

    Hi, Vijay.
    I am using Korean OS. so I'm not sure what kind of problem is... exactly .... in your case.
    Anyway, I am using that fuction. and it works well.
    try like this.
    First, editing a file what you want to upload in EXCEL and save it with file type 'TEXT(seperated by TAB)'.
    and upload it using that fuction (but use filetype 'DAT' not UTF8)...like this.
          call function 'WS_UPLOAD'
               exporting
                    filename                = dataset
                    filetype                = '<b>DAT</b>'
               tables
                    data_tab                = itab
    in my case, it works well.
    I wish I could help you.
    Good luck.
    Best Regards
    Kyung Woo.

  • SAP downloading machine characters

    Dear ABAPers..
    I'm facing a problem while downloading data from SAP in RAW format.
    I have a program which fetches some data from database and and send its on mail as an attachement in RAW so that it can be downloaded in txt as well as in csv format.
    But, SAP is formating the attachment in machine characters.
    Please help me out in get the data downloaded from SAP.
    Regards,
    Varun

    Hi Varun,
    Are you using function module SO_DOCUMENT_SEND_API1 to send an email attachment??? Do you want to download data in excel file format?

  • Arial Korean Characters & Vista

    Hello.
    I have an SWF (Actually projector .exe file) that has a
    combobox that has Arial Embedded Fonts in it.
    This combobox has a list of languages and one of them happens
    to be Korean (in Korean characters).
    In XP, the language shows up fine in the pulldown, but in
    Vista, it shows 3 blocks instead. Obviously, this is not good. Can
    anyone tell me how to get this to work?
    I have embedded the font into the FLA file as a font Symbol
    and use Actionscript to embed the font to the combobox.
    Any help would be greatly appreciated!
    Thank you,
    Doug
    Code Below:

    OK, so I think I fixed it.
    I was using Flash 8 on my XP Box to build. I used Flash CS3
    on my MAC and built the .exe on there. (It embeds Flash Player 8
    (or 9?) into the .exe file and when I run it on Vista, all is well.
    The Korean characters show up in the combobox just fine in Vista.

  • Korean characters?

    I have a Flash site that dynamically loads its content from a
    text file. I have a client who is trying to enter Korean language
    onto the text file to load into the text areas of the site.
    Unfortunately, it isn't working, and the Korean characters are just
    turning into a jumbled mess. I tried converting the text format to
    Unicode but it doesn't seem to fix the problem. Does anyone know
    this can be fixed? What can I do to accept foreign
    alphabets?

    It _might_ be that the text file needs to be UTF8 encoded.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

Maybe you are looking for

  • When I highlight text and then begin to type, the first few letters of what I start to type do not display

    Im on yosemite, and had this problem when I had Mavericks. I have a macbook pro 2014 retina 8gb ram 256gb ssd. Let me explain my issue. When I am on google's search bar, I have some text written, i.e. "what is a mac" . When I try to highlight this an

  • Desktop and Screensaver Preferences Freezes!

    I added wallpapers folder to the desktop and screensaver sidebar then I moved the folder to a different place, Now, when I open the Desktop and Screensaver, it freezes all the time. I tried to delete the files under libarary but i could not find any

  • Interactive reports using ALV

    can i make interactive reports using ALV, like - using push putton, radio button, check boxes in ALV??? if yes, then can i find any example of them??

  • Loading new class files when they are not available when the JVM starts

    Simple Question Is it possible to load class if it was not compiled when the original JVM was launched? More Detailed Question Our build system is getting a slight tweak with a new test runner. After our build system compiles the file, I would like t

  • Xcode 2.2 problem - during install

    Hi, running 10.3 on a Ti-book. Trying to install Xcode 2.2 so I can have the gcc and other C complilers installed. When trying to install, it goes through a checksum step which it fails every time - I get an "input/output" error. I have tried downloa