Junk Character

Hi
we recently migrated from oracle 8i to oracle 10g.
now i am getting junk character  instead of space.
it goes like this.
when i enter my first name from application and put one space in front.
it gets saved al rite in application but in database it gets saved as.. for example, GeorgeÂ
entered name : George
Database Save : GeorgeÂ
Please sugegst why it is coming like this? is this DB server issue or oracle DB issue.

Try the following code to remove the junk code
ascii values 32 to 126 are key board values. I have considered the remaining are junks
CREATE OR REPLACE procedure oracle_junk_remove
As
Len Number;
v_ascii_value number;
Begin
For i in
( select column1 from test1 )
Loop
len := Length(i.column1);
For j in 1..len
Loop
select ascii(substr(i.column1,j,1)) into v_ascii_value from dual;
If v_ascii_value < 32 OR v_ascii_value > 126 then
dbms_output.put_line('The junk value is ' || substr(i.column1,j,1));
update test1 set column1 = replace(column1,substr(i.column1,j,1),'');
commit;
End if;
End Loop;
End Loop;
End;
/

Similar Messages

  • ECC6.0 - PDF issue - Junk Character output after Upgrade from 4.7c

    Hi All,
    I am working in Uprgade project(from 4.7c Non-unicode system to ECC6.0 unicode system).
    We are facing PDF output issue in ECC6.0 that means we are getting junk character output(screenshot is attached for your reference).
    In 4.7c , we have stroed the OTF data in table after generated from smartform as we should not get different output in future. Whenever we need output of the same then we are getting the OTF data from that table and we will generate pdf through "Convert_otf" function module.This logic is working fine in 4.7c.
    In ECC6.0 ,the same logic is not working as system is unicode sytem and we are getting junk character output.
    As per my old upgrade project experience , i have used the below piece of code for solve this junk character issue but still I am facing the same issue.
    Kindly note that in my old upgrade project i have regenerated the OTF data in ECC6.0 and used the below piece of code then I got correct output but here I have to use the old OTF data (from table) which was generated in 4.7c.
    Please any one can give solution for this issue.
    Regards
    Anandakumar.K
    +91 9486963561.
    REPORT  z_display_notification_tst.
    Local Vairable Declaration
    TYPES: lt_pdf_table(1000) TYPE x.
    Local Vairable Declaration
    DATA :
      lv_otf_data         TYPE STRING,            " OTD data in string format
      lv_length           TYPE i,                                   " OTF Length
      lv_lines            TYPE i,                                   " No of lines
      lv_no_of_recs       TYPE int4,                                " No of OTF Lines
      lv_offset           TYPE int4,                                " Offset
      pdf_fsize           TYPE  i,
      lv_binfile          TYPE xstring,
      gv_reportsize       TYPE i,
      l_url(80) TYPE c,
      l_pdf_data TYPE STANDARD TABLE OF lt_pdf_table ,
      l_pdf_line TYPE lt_pdf_table,
      l_offset TYPE i,
      l_len TYPE i,
      lt_pdf_table        TYPE rcl_bag_tline,
      lt_otfdata          TYPE tsfotf,
      ls_otfdata          TYPE itcoo.                               " Line type of OTF data
    DATA:
        g_html_container TYPE REF TO cl_gui_custom_container,
        g_html_control   TYPE REF TO cl_gui_html_viewer.
    ******************GET OTF data from Table ******************************
    Primary Keys used for selection : BUSKEY,
                                      NTFTYP,
                                      TRNTYP,
    SELECT SINGLE otf_data FROM znotif_otf
                           INTO lv_otf_data
                          WHERE buskey EQ 'LS_000000000010001470'
                            AND ntftyp EQ '0037'
                            AND trntyp EQ 'ACT'.
    Get the length of the OTF data stored as stream of string************
      l_len = STRLEN( lv_otf_data ).
    Compute the OTF lines
      lv_lines = l_len / 72.
      lv_no_of_recs = lv_lines + 1.
    Set the offset to initial
      lv_offset = 0.
    *Reconstruct the OTF data from the string
      DO  lv_no_of_recs TIMES.
        IF sy-index NE lv_no_of_recs .
    Get OFT format: command ID
          ls_otfdata-tdprintcom  = lv_otf_data+lv_offset(2).
          lv_offset = lv_offset + 2.
    Get OTF format: command parameters
          ls_otfdata-tdprintpar  = lv_otf_data+lv_offset(70).
          lv_offset = lv_offset + 70.
        ELSE.
    Last line contains only the OFT format: command ID  "//" (End of file)
          ls_otfdata-tdprintcom  = lv_otf_data+lv_offset(2).
          lv_offset = lv_offset + 2.
        ENDIF.
    Append the OTF data to Export OTF table
        APPEND ls_otfdata TO lt_otfdata.
        CLEAR ls_otfdata.
      ENDDO.
    *************************Convert OTF to PDF**************************
    IF lt_otfdata IS NOT INITIAL.
      clear: lv_binfile,
             pdf_fsize.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = pdf_fsize
          bin_file              = lv_binfile
        TABLES
          OTF                   = lt_otfdata
          lines                 = lt_pdf_table
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDIF.
    Call screen***********************************
    Call screen
    CALL SCREEN 100.
    RETURN.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS '100'.
    SET TITLEBAR '100'.
    Convert bin file
      clear :l_len,
             l_offset.
      free l_pdf_data[].
    l_len = XSTRLEN( lv_binfile ).
    WHILE l_len >= 1000.
      l_pdf_line = lv_binfile+l_offset(1000).
      APPEND l_pdf_line TO l_pdf_data.
      ADD 1000 TO l_offset.
      SUBTRACT 1000 FROM l_len.
    ENDWHILE.
    IF l_len > 0.
      l_pdf_line = lv_binfile+l_offset(l_len).
      APPEND l_pdf_line TO l_pdf_data.
    ENDIF.
    Initialise and create the HTML container
      IF NOT g_html_container IS INITIAL.
        CALL METHOD g_html_container->free
          EXCEPTIONS
            OTHERS = 0.
        CLEAR g_html_container.
      ENDIF.
      CREATE OBJECT g_html_container
        EXPORTING
          container_name = 'HTML_CONTAINER'.
    Initialise and create the HTML control that will display the
    PDF output as URL
      IF NOT g_html_control IS INITIAL.
        CALL METHOD g_html_control->free
          EXCEPTIONS
            OTHERS = 0.
        CLEAR g_html_control.
      ENDIF.
      CREATE OBJECT g_html_control
        EXPORTING
          parent   = g_html_container
          saphtmlp = 'X'.
    Load the pdf data and obtain the URL
      CALL METHOD g_html_control->load_data
        EXPORTING
          size         = pdf_fsize
          type         = 'application'
          subtype      = 'pdf'
         IMPORTING
          assigned_url = l_url
        CHANGING
        data_table    = l_pdf_data
       EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
       raise cntl_error.
      ENDIF.
      CALL METHOD cl_gui_cfw=>flush.
    Show the URL
      CALL METHOD g_html_control->show_url
        EXPORTING
          url      = l_url.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Anandakumar.K on Oct 25, 2011 12:47 PM
    Edited by: Anandakumar.K on Oct 25, 2011 12:54 PM

    Hi,
    as you can see in SAP notes 842767 and 1349413, spool data cannot be converted properly for all types in a Unicode conversion.
    This might be possible if you have English (US7ASCII) characters only, but with Chinese characters I do not think that a small piece of code can do it ...
    Hence I think you need to recreate the data on the Unicode system ...
    Best regards,
    Nils Buerckel
    Edited by: Nils Buerckel on Nov 3, 2011 1:51 PM

  • DateNavigator in Safari Brower shows junk character

    Dear All,
    In Safari browers (all versions), DateNavigator UI element is shows junk character.  To reproduce this error, please follow the below steps.
    1.      Click on the date picker.
    2.      Try to change the month from u201CJuly to Augustu201D or u201CJuly to Juneu201D and try to choose a date either from June or  August.
    3.      Some junk characters u201CNaN.NaN.NaNu201D are displayed.
    Please advice,
    Regards,
    Ramki.

    Ramakrishnan Subramaniam wrote:
    We are in NW 7.01....Thanks for info.
    >
    > I got confirmation from SAP that, it will support NW 7.02 or NW 7.01 SP4 onwards.
    >
    > Rgds,
    > Ramki.
    Who did you receive that information from? The Safari path in the renderer was only added in 7.02. You can confirm with the Platform Availability Matrix on the Service Marketplace the offically supported browser/release combinations. http://service.sap.com/pam
    According to the July 2011 version of the PAM Safari 4 on MacOS 10.5/6 is supported as of 7.02 SP4 and Safari 5 on MacOS 10.5/6 is supported as of 7.02 SP5. There are no additional listings for Safari on any other releases or operating systems.

  • E-Mails preview shows junk character

    Hello All,
    I could successfully install 10.3.1.-1565 on my Z3 handset and it is working fine except that it shows junk character in mail if it has PDF, DOC or any attachment.
    Can anybody advise take this issue at right level of BB official support.
    Thanks,

    I have done following steps but no changes have the same issue.
    1. Navigate to OAM->Workflow Manager->Notification Mailer->View details in this page
    2. Look for parameter called RESET_NLS change this value from 'YES' to 'NO'.
    3. Bounce Notification Mailer.
    Regards
    Musaddak.

  • Logo in Smartform output to pdf format is coming as Junk Character

    Hi All,
    I have a requirement to generate the Smartform output in PDF file. But when i am doing that i am getting the LOGO as Junk character in the PDF file. Can any one help me to resolve this issue?.
    Thanks,
    Muruganand.K

    Yes check the spool and the output displayed correctly in the spool it means there is a problem when you convert OTF to PDF. Check that part of the code and try different options.

  • Arabic letters are displayed as junk character in PDF preview

    When we try to view (HFR Financial reports in PDF preview Arabic letters are displayed as junk character. While the same is shown correctly in HTML view.
    Oracle EPMA version we are using 11.1.1.3, please provide some solution on this issue

    This could help if you are connecting to essbase or planning:
    1.Set the ESSLANG environment variable on the Essbase server to
    ESSLANG= Arabic - Saudi Arabia (ISO)@Binary
    2. In Financial Reporting, you must use the Essbase APS ADM driver rather then the Essbase Native ADM driver. Set the driver in \Hyperion\products\biplus\lib\fr_global.properties by setting the parameter
    UseEssbaseEDS=1
    3. In \Hyperion\products\biplus\lib\fr.env, set the ESSLANG environment variable as follows:
    ESSLANG= Arabic - Saudi Arabia (ISO)@Binary
    4. Re-start the Essbase and Financial Reporting services.

  • Problem with SQL Convert Function Junk Character

    Hi All,
    We have a database field that has a value of “2.020 OPERATOE’S CAB – GLASSES” on the front end of Oracle E-Business Suite. When we are spooling that column(in PLSQL) with the SQL covert function , one of the characters(’) in the string is not getting converted properly. It is displayed as a junk character in the spooled file.
    We used CONVERT(p_column,'WE8ISO8859P1','UTF8') for converting the string and utl_file api for spooling the output file. Please note that converted string is passed to utl_file.fopen directly.
    Following are the nls_parameters values.
    NLS_CHARACTERSET ~~ UTF8
    NLS_NCHAR_CHARACTERSET ~~ AL16UTF16
    Any inputs are welcome.
    Thanks
    gt1942

    Hello All,
    Sorry, If I am opening the blog in the wrong place as this is the first time.
    my out looks as follows.
    "02920  "
    but when i see in the application there is nuthing in the end.
    so I used regexp_replace(p_vendor_dtl,'[^[!-~]]*',''), But this is removing spaces also. I don't want to remove space. I want to remove this character only.
    Please help
    Thanks.

  • Character field in excel output exist some junk character's

    PlatForm :IBM630,PC
    Operation System:windows xp,windows 2003,AIX 5.3
    IAS version :10.1.2
    Language :Chinese
    When set desformat parameter equal to spreadsheet, character field in excel output exist some junk character's,
    and as excel output data gather volume,junk character's will more and more.
    But when I only get the record include junk character's,then the excel output will be ok.
    How can I do to solve the problem?
    Thanks in advance!
    lind
    Message was edited by:
    user565112

    PDF,RTF DESFORMAT is right,but users need spreadsheet desformat too.
    the characterset is unicode,and end signal of junk character is ?/SPAN>.
    When I get excel output include junk character,the same time get the junk character's record,and then get excel output only include the junk character's record,the excel output will be showed correctly,no junk characters.
    How to sovle the problem?
    thanks.
    Message was edited by:
    user565112

  • Showing junk character

    Dear all,
    I am using oracle9i. I got the export from one place and tried to import in my database. Both the source and destination database character set is WE8IS08859PI. After importing the data, i tried to pull the data in the excel. One of the field is varchar2(2000) and it contains new line character. When i open the data in TOAD, it shows correctly. But when i pull in excel or any other front end, it is showing as a junk character(square box) for new line chatacter. New line character is suppressed and displaying new line character as square box(junk character). How do we resolve the issue?

    try a search and replace within Excel on the junk character to replace it with ''.
    cheers,
    R

  • Junk Character like "#" comes in the Project & WBS desc.....

    Dear all,
    When we transfer and release the project from C-projects module to PS,
    then sometime, a junk character like "#" gets appended to the Project &
    WBS description, when we retrive the Project in CJ20N. This junk
    character creates a lot of problems in the reports, specially, when it
    is exported to excel. due to this, all columns gets shifted in the
    excel. After a lot of simulation, we found that if we unintentionally
    give some spaces in the c-project description, then the junk character
    gets appended to the PS description. What is the remedy ?? what should
    be done to avoid this ???
    Can any of you advise on this?
    Thanks,
    Kumar

    Can you let us know exactly what is stored in the database?
    What is the data type? Will you be able to paste the content of the cell that you are referring to?
    What front end you are using?
    Pradeep
    www.lokahitam.com

  • Junk character '#' comes in Project description and WBS description...

    Dear all,
    When we transfer and release the project from C-projects module to PS,
    then sometime, a junk character like "#" gets appended to the Project &
    WBS description, when we retrive the Project in CJ20N. This junk
    character creates a lot of problems in the reports, specially, when it
    is exported to excel. due to this, all columns gets shifted in the
    excel. After a lot of simulation, we found that if we unintentionally
    give some spaces in the c-project description, then the junk character
    gets appended to the PS description. What is the remedy ?? what should
    be done to avoid this ???
    Can any of you advise on this?
    Thanks,
    Kumar

    Dear Kumar;
    This was also happening to me while uploading Project and WBS from Excel file.
    Remedy: for Description Column, copy and paste it on a sperate excel sheet, and apply Trim fromula to erase extra spaces in the begining and end of field.
    Now save that 2nd sheet with only description column as text TAB format from excel. and close the file.
    Now open that text tab file in excel and copy and p[aste this description column to original Upload file.
    This will resolve your issue.

  • XML file has some extra junk character

    Hi Experts,
                      When i store file in application server,some extra junk character at last in xml file.So it gives error like below.
      An invalid character was found in text content.
    The last row of XML internal table has some extra special characters. How to avoid these extra spacial characters?
    Please suggest?
    Thanks.

    if possible, Do the following in side the loop.
    data lv_string type string VALUE '1111111######'.
               REPLACE ALL OCCURRENCES OF '#' IN lv_string WITH ''.
    or
      OPEN DATASET <path> FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Kanagaraja L

  • Junk Character displayed when language is Japanese

    Hi,
    I have one PG1where there is a a textbox for additional information input.Now after putting the Additional text there and when user click OK then it comes to PG2 and that information is populated in certain text area.
    This is for your information that the text is coming from PG1 to PG2 through hashmap. Now here the issue is when we are putting text n PG1 with some different language other than english like Japanese then the text in PG2 coming as '?????'.(junk character).
    Can you please let me know how to handle this ?
    Thanks
    Debashree

    These might help
    For NLS Customers, if after submitting a page you get garbage characters then you need to install OJSP1.1.2.
    Please check release notes accompanying your OA Framework patchset, and Metalink Note 132604.1 for more details.
    or try adding unicode char set
    Add the following line to apps.conf.
    <IfModule mod_mime.c>
    AddType "text/html; charset=us7ascii" html
    </IfModule>
    Thanks
    Tapash

  • Junk character is displayed BI Publisher report

    Hi gurus
    In iRecruitment module ,i have replaced a standard report with custom report ,but for amount fields ,it is displaying junk character for every comma (,) place in the numeric value ,like if
    HRA is 10,000 ,then in report it is coming like 10*u*000,or if it is 1,00,000 then it is displayed like 1*u*00*u*000.
    any suggestion would be very helpful
    thanx in advance
    thanx
    Pratap

    You should be able to use translate function to help you replace the comma. Search the forum as well for similar threads. Here is one that might help.
    Re: Pre-formatted number values in XML
    Award points if helpful.
    Thanks!

  • Junk character being sent by Jdbc Receiver adapter

    Hi all,
    I am using jdbc receiver adapter it s working fine .However for costumer name it is sending some junk character in last like " SMAN-Abdulrahman Osman¿ " the thing is that all other field is getting populated properly. when I am viewing the data in sxmb_monni .I am finding the data is prpoer but when it is getting posted to staging table then junk character is coming .I am coused whether it is mistake of JDBC adapter or something wrong in the staging table.
    Regards,
    Saurabh

    Hi Vijay
    But for JDBC adapter where I will use the encoding...It is IDoc to Jdbc scenario.So I haave already used the encoding option in RFC destination.Now where to define the encoding in jdbc adapter I am not sure.
    One more thing I had used the encoding in RFC to read arabic charachter now its reading arabic charchter currectly but when the name is coming in english then it is getting appended by ¿. for example SMAN Saleh Ahmed Mustafa¿
    surprisengly in other column if value is coming in english also it is coming properly. could it be a problem in staging table itself. i am pitting one row below.
    Nural.L.L.C¿                        Yerevan-Armenia                     99999                           Yerevan Community

Maybe you are looking for

  • Error during invoking the web service

    hi, i am using axis 1.2.1 & tomcat-5.0.28 when i am trying to invoke the web service i am getting the error. i am passing all the parameters..then also it is giving the error.i have used the wsdl file to generate the stubs (using wsdl2java tool).the

  • Changes are not applying to the reports

    hi all i have moved the RPD and catalog file to UAT there i got few changes i did the changes in DVE and again i moved the changed reports to UAT ,but the report changes are not applied in UAT so i again i copied same RPD and catalog to UAT now it is

  • Unplanned delivery costs with MIRO

    Dear experts, Please help me out mapping following scenario - We have created a PO without Delivery costs in Conditions as soon as the material is received it is unloaded into the stores by company owned cranes. But in cases some third party cranes a

  • Pass value to open form

    Hi, I am trying to pass a value to a jTextField in a jFrame (called "start") from a class. The following code will not compile: new start().setVisible(true);     start.jTextField2.setText("hello");  I receive the following error: jTextField2 has priv

  • DPM Server System State and Bare MEtal using SqlServerWriter

    HI All, Having issuing with bare metal backups of a DPM server and was hoping to get some help. I have a DPM 2010 Server running on server 2008 r2. SQL databases are hosted locally on a non system drive (e) When I run Windows Server Backup locally on