UTL File output shows junk characters

Hi,
I have a interface where i'am displaying the details in a text file using the UTL package.
The output is showing correctly but there are few junk characters at the end of the string like small boxes.
Can anybody advice as why this is happening and how to fix it.
Thanks in advance,

Hi,
I would appreciate if any one has any suggestion on this issue.
Thank You,
Mohammed

Similar Messages

  • PO custom XML report output shows junk characters

    Hi,
    One of our PO custom XML report's output(pdf) shows junk characters. when these junk characters are copied to any text editor, it shows correct text characters.
    Below are our environment  details:
    RDBMS: 10.2.0.
    Oracle E-Business suite: 12.0.6
    OS: Oracle Sun 10
    This is a clone system and the issue started after cloning
    Please suggest.
    Thank you.

    Hi,
    I would appreciate if any one has any suggestion on this issue.
    Thank You,
    Mohammed

  • Barcode related Template output Printing Junk characters  in XML Publisher

    Hi Gurus,
    Could you please help me out..
    I have a bar code related Template and registered to Concurrent Program(i.e. Report type as Executable) and i run the Program in PDF Output.
    I am using free "3 of 9 font" for Bar code in my template
    Problem Occurrence Procedure
    1) When i submit the Concurrent Program and Click the View Output Button
    2) the out put looks good with Bar code and Text in Table Format.
    3) when i assign a printer, while Concurrent Program Submission then the printer prints output with Junks Characters and no data in it.
    4) if i save the PDF Output file in Desktop and give print then it prints Good with barcode and text in Table Format.
    The main problem is when printer is assigned to the Concurrent Program while submission of Request then the Printer output is printing Junk Characters but through View Output Button in Request Window we get Barcode Output Good with data in it
    Could you please give me the Solution in Step by step Procedure
    It would be grateful to me..
    Thanks,
    Vijay

    Hi Schavali,
    Ours Database Server
    RDBMS : 10.2.0.4.0
    Oracle Applications : 11.5.10.2
    OS:- IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    If you are using UTF8, direct PDF printing is not supported. Has the barcode font been installed ?
    i am using free 3 of 9 bacode font..
    Could you please give me the step by step procedure for printing the Output with barcode labels..
    Thanks,
    Viajy

  • HRSSA Email Notifications shows Junk Characters for Arabic

    We have R12 Oracle ERP
    RDBMS : 11.1.0.7.0
    Oracle Applications : 12.1.1
    We are getting email notifications from Self Service (HRSSA), it shows junk characters in the body of the email, wherever we have arabic characters.
    Where as in Subject of the email arabic is coming ok.
    Below line is Subject of email
    FYI: تم اعتماد Leave of Absence الذي يخص خاتتال, Ishaq Ahmed Mohammed
    Below part is from Body of email
    åæ               SYSADMIN
    Åäé               ÎÇÊÊÇä, Ishaq Ahmed Mohammed Khattal
    åÑÓä               10-04-2013 08:55:08
    ÇäåÙÑá               221139
    ÇäåÙÊåÏ ÇäæçÇÆê: ÌäÇä, ABDULAZEZ ABDULMUTALIB JALAL
    ÇÓå ÇäåÓÊÎÏå: AZIZ.MUTALIB
    ÇäÊÙäêâ:
    Êå ÇÙÊåÇÏ ÊÚêêÑÇÊ Leave of Absence ÇäÊê êÊå ÅÌÑÇÆçÇ Ùäé ÎÇÊÊÇä, Ishaq Ahmed Mohammed Khattal.
    çÐÇ ÇäÊÈäêÚ ääÙäå áâ×

    Hi;
    I can not find any similar issue at metalink. I suggest rise SR
    Regard
    Helios

  • Report displaying Arabic characters in output as junk characters

    Hi
    We have few Arabic reports which are giving output as junk characters. Below are version details
    EBS Version : 11.5.10
    Reports : Oracle 6i
    Database : 10g
    Any pointers how to resolve this issue
    Thank You
    Arjun

    may be font is not available in client side
    or
    database is not configured unicode
    thanks
    mostafiz mitul
    Dhaka Bangladesh

  • Oracle Reports 6i on Oracle EBS 11i Showing Junk Characters

    Hello,
    I have a very simple Oracle Reports 6i reports that needs to run in EBS. I have developed the report and it iis working like a charm when run within the Report 6i tools itself. But when this .rdf file is ported over Oracle EBS and when I run as concurrent request, I get junk characters in report data.
    Please advise what am I missing. Below is the output from concurrent manager. You will see that there are junk values like (s7B07... everywhere.
                                                                                         Report Date: 15-JAN-2012 18:59
                                       (s7B Ship Confirm Transmission Report(s0B
                                                                                        Report Date: 15-JAN-2012 18:59
                                   (s7B Ship Confirmation Transmission Report(s0B                        Page:       1  of     1
    (s7BTransmission Summar(s0B
    (s7BSales Orders Picked in Oracle(s0B  (s7BSales Order Lines Backordered(s0B    (s7BTotal Sales Order Lines Shipped(s0B  (s7BTotal Sales Order Lines in Erro(s0B
      (s7B48(s0B                            (s7B2(s0B                                (s7B8(s0B                                (s7B0(s0B
      (s7B48(s0B                            (s7B2(s0B                                (s7B8(s0B                                (s7B0(s0B
      (s7B48(s0B                            (s7B2(s0B                                (s7B8(s0B                                (s7B0(s0B

    I have a very simple Oracle Reports 6i reports that needs to run in EBS. I have developed the report and it iis working like a charm when run within the Report 6i tools itself. But when this .rdf file is ported over Oracle EBS and when I run as concurrent request, I get junk characters in report data. What is the type of the report? Try to change it to PS (assuming you have bitmap reports enabled) and check the output then.
    You cannot use dffferent font type/size in the text reports -- How To Change The Font, Size, or Page Layout of Standard and FSG Reports [ID 467568.1]
    Thanks,
    Hussein

  • Report Pdf output getting Junk characters for some boiler Plate fields

    Hi All
    For Dunning Letter Report registered in Oracle Applications,made changes in Column headings like added customer number as Kunde for German Letter
    but in pdf output it's appearing as junk characters even date field is happening like that. It's happening for German, Spanish, Italy and French Letters. Working ok for Netherlands, English.
    any input to fix this solution will be great
    Thanks
    Kamalakar.G

    Maybe you check the NLS_LANGUAGE-settings on the client where you "edit" the reports-definition.

  • Oracle Discoverer Desktop Report output showing unicode characters

    Hi,
    Oracle Discoverer Desktop 4i version Report output showing the below unicode characters.
    kara¿ah L¿MAK HOLD¿NG A.¿
    We ran the same query in sql at that time the data showing correctly.
    Please let me know, is there any language settings/ NLS settings are need to set
    Thanks in Advance.

    Hi
    Let me give you some background. In the Windows registy, every Oracle Home has a setting called NLS_LANG. This is the variable that controls, among other things, the numeric characters and the language used. The variable is made up of 3 parts. These are:
    language_territory.characterset
    Notice how there is an underscore character between the first two variables and a period between the last two. This is very important and must not be changed.
    So, for example, most American settings look like this: AMERICAN_AMERICA.WE8MSWIN1252
    The second variable, the territory, controls the default date, monetary, and numeric formats and must correspond to the name of a country. So if I wanted to use the Greek settings for numeric formatting, editing the NLS_LANG for Discoverer Desktop to this setting will do the trick:
    AMERICAN_GREECE.WE8MSWIN1252
    Can you please check your settings? Here's a workflow:
    a) Open up your registry by running Regedit
    b) Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
    c) Look for the Oracle Home corresponding to where Discoverer Desktop is installed. It's probably called KEY_BIToolsHome_1
    d) Clicking on the Oracle Home will display all of the variables
    e) Take a look at the variable called NLS_LANG - if it is correct Exit the registry
    f) If its not correct please right-click on it and from the pop-up select Modify
    f) Change the variable to the right setting
    g) Click the OK button to save your change
    h) Exit the registry
    Best wishes
    Michael

  • Preview Template shows junk characters

    Hi,
    I have uploaded my RTF in the Template Definition and clicked on Preview Template to view it.
    I see some junk characters coming in the PDF Preview output for the Euro symbol..If i run this as a concurrent program or run it locally in the system or preview it in format other than PDF everything else works fine..
    This issue is only when we preview the template from the Template Definitions, am having the issue of junk characters for Euro symbol.
    Any suggestions/helps pls?
    Regards,
    Genoo
    Edited by: Geno on Jan 17, 2012 11:19 AM

    Any help or suggestions please?
    Regards,
    Genoo

  • R12 - Report showing Junk Characters

    Hi
    We developed report in English and when we copy and run in R12 it is giving the output in different language like Russian.
    I checked the parameters Etcc.. all shows with English.
    But when we copy the contents from report (pdf) to notepad it converts to English. Also if I change the font to courier size 10 it works but if we change the font size to 12 again it shows junk.
    Can any one faced this type of issue, any suggestions?
    Thanks in Advance.

    Hi,
    Please see if the following helps
    'Courier' font displays with the same size when 'NLS_LANG=AMERICAN_AMERICA.UTF8' [ID 336178.1]
    Thanks,
    Taher

  • Showing junk characters at SQL Prompt.

    Hi All,
    I m a beginner in Oracle DBA. I have one problem, i m trying to make my database such that it will store HINDI characters. Got that i changed NLs parameters in PFILE,Session as per document given by the Oracle. I also installed HINDI unicode font on my machine. But at SQL prompt its showing junk character when i fired a command
    select sysdater from dual.
    But if i change language to french then its working perfectly. i.e, its showing correct information.
    I also went throught the locale builder utility but there too i m getting square boxes. Can anybody help me out how to solve this problem.
    Regards
    Mahesh Agarwal

    Please review the FAQ and Unicode whitepaper at
    the Globalization home page:
    http://technet.oracle.com/tech/globalization/content.html
    If you need further help you need to specify the database
    version, the database character set, your client OS, the
    client OS language, are you using SQL*Plus etc.

  • ADDI: Ping test of AdfDi servlet shows junk characters

    Hi we got this issue in one of our QA instances where on accessing the ADFDI servlet we get to see junk characters.
    Normally we would expect to get the login screen and upon providing the credentials
    Oracle ADF 11g Desktop Integration (11.1.1.6.2) [12]
    Response from oracle.adf.desktopintegration.servlet.DIRemoteServlet: OK.
    But in this particular instance we get Junk characters. Any pointers will be helpful

    HI
    the servlet gives junk chars when accessed through
    http://slcad966.us.oracle.com:10620/hcmPayroll/adfdiRemoteServlet
    but gives correct results when accessed through
    https://slcad966.us.oracle.com:10620/hcmPayroll/adfdiRemoteServlet
    What controls which protocol is used to access the servlet from the excel sheet ?

  • UTL FILE OUTPUT FILE FORMAT ISSUE ON ORACLE 11G

    how to format util file output align with column value with proper format.
    set serveroutput on
    DECLARE
       CURSOR h1
       IS
       select  'TOTAL_ACCOUNT_REJECTS' as TOTAL_ACCOUNT_REJECTS   ,
         'PC' as  PC ,
          'RT' as  RT,
          'SERIAL' as  SERIAL
          from dual;
       --    l_app_nm              := RTRIM( TRIM( l_line ), CHR(13) );
       CURSOR c1
       IS
      SELECT
      company  ,
    user,
    app,
    account
            FROM account_auth
           WHERE ROWNUM < = 5;
       lc_file_handle        UTL_FILE.file_type;
       lc_file_dir           VARCHAR2 (100);
       lc_file_name          VARCHAR2 (50);
       gov_005_payment_rec   VARCHAR2 (1000);
    BEGIN
       lc_file_dir := 'OUTB';
       lc_file_name := 'test.txt';
       lc_file_handle := UTL_FILE.fopen (lc_file_dir, lc_file_name, 'W',1024);
      FOR i IN h1
       LOOP
          gov_005_payment_rec :=
                i.TOTAL_ACCOUNT_REJECTS
             ||' '
             || i.PC
             || ' '
             || i.RT
             || ' '
             || i.SERIAL;
          UTL_FILE.put_line (lc_file_handle, gov_005_payment_rec);
       END LOOP;
       FOR i IN c1
       LOOP
          gov_005_payment_rec :=
                 i.company
             ||' '
             || i.user
             ||' '
             || i.app
             ||' '
             || i.account;
          UTL_FILE.put_line (lc_file_handle, gov_005_payment_rec);
       END LOOP;
    EXCEPTION
    WHEN UTL_FILE.INVALID_PATH        THEN DBMS_OUTPUT.PUT_LINE('Invalid
    path!');
      WHEN UTL_FILE.INVALID_MODE        THEN DBMS_OUTPUT.PUT_LINE('Invalid
    mode!');
      WHEN UTL_FILE.INVALID_OPERATION   THEN DBMS_OUTPUT.PUT_LINE('Invalid
    operation!');
      WHEN OTHERS
    RAISE;
    END ;
    OUTPUT :  issue with file format
    TOTAL_ACCOUNT_REJECTS PC RT SERIAL
    &&&&&846  000000000000 APPLICATION123 20570
    &&&&284  000000000000 APPLICATION133 20570
    &&&2&&846  000000000000 APPLICATION163 20570
    EXPECTED output   ==> please advise me , how to create proper formatted output file using utl_file?  thanks in advance.
    TOTAL_ACCOUNT_REJECTS      PC                         RT                            SERIAL
    &&&&&846                                 000000000000        APPLICATION123       20570
    &&&&284                                  000000000000         APPLICATION133       20570
    &&&2&&846                              000000000000         APPLICATION163       20570

    Example of creating a fixed width format file for a dynamically provided query, using the DBMS_SQL package...
    As SYS user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    As myuser:
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
          WHEN 2 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
          WHEN 12 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),greatest(19,length(rec_tab(j).col_name)),' ');
        END CASE;
      END LOOP;
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(v_v_val,' '),rec_tab(j).col_max_len,' ');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_n_val,'fm99999999999999999999999999999999999999'),' '),rec_tab(j).col_max_len,' ');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),' '),greatest(19,length(rec_tab(j).col_name)),' ');
          END CASE;
        END LOOP;
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;
    This allows for the header row and the data to be written to seperate files if required.
    e.g.
    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    PL/SQL procedure successfully completed.
    Output.csv file contains:
    empno                 ename     job      mgr                   hiredate           sal                   comm                  deptno               
    7369                  SMITH     CLERK    7902                  17/12/1980 00:00:00800                                         20                   
    7499                  ALLEN     SALESMAN 7698                  20/02/1981 00:00:001600                  300                   30                   
    7521                  WARD      SALESMAN 7698                  22/02/1981 00:00:001250                  500                   30                   
    7566                  JONES     MANAGER  7839                  02/04/1981 00:00:002975                                        20                   
    7654                  MARTIN    SALESMAN 7698                  28/09/1981 00:00:001250                  1400                  30                   
    7698                  BLAKE     MANAGER  7839                  01/05/1981 00:00:002850                                        30                   
    7782                  CLARK     MANAGER  7839                  09/06/1981 00:00:002450                                        10                   
    7788                  SCOTT     ANALYST  7566                  19/04/1987 00:00:003000                                        20                   
    7839                  KING      PRESIDENT                      17/11/1981 00:00:005000                                        10                   
    7844                  TURNER    SALESMAN 7698                  08/09/1981 00:00:001500                  0                     30                   
    7876                  ADAMS     CLERK    7788                  23/05/1987 00:00:001100                                        20                   
    7900                  JAMES     CLERK    7698                  03/12/1981 00:00:00950                                         30                   
    7902                  FORD      ANALYST  7566                  03/12/1981 00:00:003000                                        20                   
    7934                  MILLER    CLERK    7782                  23/01/1982 00:00:001300                                        10                   
    The procedure allows for the header and data to go to seperate files if required.  Just specifying the "header" filename will put the header and data in the one file.
    Adapt to output different datatypes and styles are required (this is currently coded for VARCHAR2, NUMBER and DATE)

  • SQLPLUS screen showing junk characters

    on a arabic windows machine i installed oracle 10g, its showing all the feedbacks, error messages in arabic.
    i went to windows control panel and change the regional settings from local arabic language to english us.
    even at the command prompt when i use the EXPort utility yo backup my db tables. its showing junk pormpts.
    how do i get rid of this. please guide.
    to give u some idea, here are the screen shots of my problem;
    http://s640.photobucket.com/albums/uu123/fairoozxp/?action=view&current=orcllgn.jpg
    http://s640.photobucket.com/albums/uu123/fairoozxp/?action=view&current=orcllgn1.jpg
    http://s640.photobucket.com/albums/uu123/fairoozxp/?action=view&current=orcllgn3.jpg
    http://s640.photobucket.com/albums/uu123/fairoozxp/?action=view&current=scrn1.jpg
    http://s640.photobucket.com/albums/uu123/fairoozxp/?action=view&current=scrn2.jpg
    http://s640.photobucket.com/albums/uu123/fairoozxp/?action=view&current=scrn3.jpg
    regedt settings;
    http://s640.photobucket.com/albums/uu123/fairoozxp/?action=view&current=rgedit.jpg

    This is a classical case of not reading any documentation and going ahead.
    When things go wrong, again don't read the documentation, but jump to OTN specifying as little as possible
    Arabic Windows doesn't tell anything and Oracle 10g is a marketing label.
    Then a series of screenshots on a server no one can reach.
    But I know what happened:
    When you installed Oracle and created a database, it took defaults from Windows, so you get a database in an Arabic characterset. Then all of a sudden you decided to change the characterset of the O/S by changing the locale settings.
    As in Oracle the characterset of the database needs to match the characterset of the O/S, this is not going to work ever. Even if you change NLS_LANG in the registry it still needs to convert between English/US and Arabic. If the characterset of the database is not UTF8, this is doomed to go wrong.
    Either recreate the database in UTF8, or revert the O/S change.
    And BTW: Export is NOT a backup.
    Sybrand Bakker
    Senior Oracle DBA

  • Junk Characters in the Output of  Reports2.5

    I have created Report in Reports2.5 which is giving good output display
    But when I Register the Report in Oracle Apps & see output
    it shows Junk Characters in the place of Labels
    e.g. Revenue Report
    will come like sg0Revenue o7Report
    Can any-one give me the solution for this
    Regards / Shailesh ( [email protected] )

    This is probably due to the prt file that's being used to format the output. I'm willing to bet that the headings are in bold, and the prt file being used has includes some control characters to tell the printer to switch on and off bold - when you view the output file those are the characters you're seeing.
    To switch this off simply remove the control characters from the prt file being used.
    Hope this helps,
    Danny

Maybe you are looking for

  • How to open an Arabic PDF in Illustrator CS3 ME without outlining the font?

    Hi, I need to use Illustrator CS3 ME (Middle East) in order to edit some pages of an Arabic PDF file. Now, the problem is that as soon as I open the page in Illustrator, all of the Arabic text gets outlined. The English text doesn't get outlined. I n

  • In Lion, is archiving mailboxes now also a thing of the past?

    I have a mail archive on one of my hard drives - external. I just realized that now, in Lion I canonly archive messages and they are put in an archive folder on the server. Which server no-one tells me, mine is actually not anything mac or apple, and

  • External HD not recognized after incorrect ejection.

    I recently unplugged my external HD from power while it was plugged in to my MacBook, though my MacBook was closed.  When I opened my MacBook, I was informed that the drive was incorrectly ejected.  Now, my computer refuses to recognize the drive.  I

  • Migrate existing code of AS3 to AS2 - URLRequest, URLLoader

    Hi, I have written code to read an XML file by using URLRequest and URLLoader in ActionScript 3.0. Code is pasted below. This runs well in AS3.  Problem I am facing is because I wrote this in AS3, I am not able to use the DateChooser component in ano

  • Reliability of Spry Accordion Widget

    I posed a question in this forum last week and was unable to get a helpful answer to my problem. I am trying to use the Spry Accordion Widget on a site: http://www.jalc.org/JazzED/s_eac_B.html I have researched here to learn how to get the panels to