Wrong translation of escape codes?

We use the Oracle XSLT processor on Oracle 8i. Problem is, the source document contains escape codes for foreign characters, an example is ó
However, no matter what escape codes we use, the target document, after xsl translation, always translates this into two bytes: BF BF.
What are we doing wrong? Our source document AND our xsl sheet contain the ISO-8859-1 encodings, and using a download version of the oracle 9i xsl parser in Cooktop produces the correct result (in our example, the escape code is translated into the byte F3).
Could it be something in the session NLS settings?

By the way, we store the result document in a CLOB. Maybe this could be the problem?

Similar Messages

  • Report printing escape codes

    Hi,
    My report comes out with escape codes printed.When I print to file it shows that the escape codes are interpreted correctly BUT they still come out as printable characters when I send to printer. Funny thing is when I output to file then print it using DOS (copy the file to printer port) my report comes out ok with the printer codes interpreted! What could be wrong? sb pls help urgently! I am using reports 6i on WIN2000 platform.
    Mbachi

    You need to set the printer to spool the raw data (and not try and be clever and interpret the escape characters, which is what's happening now). To do this on Windows 2000:
    * Click Start , point to Settings , and then click Printers .
    * Right-click the printer that you want to use and click Properties .
    * On the Advanced tab, click Print Processor .
    * Click Raw in the Default data type box.
    * Click OK to confirm changes.
    * On the Advanced tab, clear the Enable advanced printing features option.
    * Click OK to confirm changes.
    Hope this helps,
    Danny

  • What's wrong with the following code?

    What's wrong with the following code?
    Circle cir1;
    double rad = cir1.radius

    The circle Object was never instantiated.
    In other words, you have set a declaring of a Circle, but it has not been created in memory yet.
    You will create it using the " = new Circle( PARAMETERS_HERE ); "
    Or some other method that returns a circle.

  • What's wrong with this simple code?

    What's wrong with this simple code? Complier points out that
    1. a '{' is expected at line6;
    2. Statement expected at the line which PI is declared;
    3. Type expected at "System.out.println("Demostrating PI");"
    However, I can't figure out them. Please help. Thanks.
    Here is the code:
    import java.util.*;
    public class DebugTwo3
    // This class demonstrates some math methods
    public static void main(String args[])
              public static final double PI = 3.14159;
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);

    Change your code to this:
    import java.util.*;
    public class DebugTwo3
         public static final double PI = 3.14159;
         public static void main(String args[])
              double radius = 2.00;
              double area;
              double roundArea;
              System.out.println("Demonstrating PI");
              area = PI * radius * radius;
              System.out.println("area is " + area);
              roundArea = Math.round(area);
              System.out.println("Rounded area is " + roundArea);
    Klint

  • Req: Example of report sending a printer escape code

    Hello, I have a batch report that prints student transcripts. After a transcript, I need to tell the printer to staple.
    Please point me to an example of sending a printer escape code.
    By the way I'm printing from Win98 to a Konica 7055 using the postscript driver.
    Thanks!
    Gary C. Whitaker
    St. John Health System
    Information Systems
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    hello,
    i have in trouble in same kind of problem if you able to get ride off this problem please help me.
    i have designed a charachter mode report that require a page size height 66 and width 132 portrait mode to print,
    i need to print this report on a generic printer, i have tried various generic printer defination files that are shipped with oracle reports, but the printer prints it according to the page size of height 66 and width 80 becuse of which data gets truncated, however if i send the output a file then it is correct.
    Any body please could tell me what i should do, i am gone blank?
    Thank you in anticipation of reply.<HR></BLOCKQUOTE>
    null

  • What´s wrong in my HTML code

    What´s wrong in my HTML code? I've developed a site that doesn't show up properly when using Safari. Could some expert tell med what errors we've made. Have a look at
    www.scandinaviandesigncenter.com
    We promise to send the person who helps us to fix this a real nice Scandinavian design present as a token of appreciations
    B rgds
    Jorgen B --> [email protected]

    Hi, Jorgan, welcome to Apple's user-to-user discussion forums.
    What version of Safari are you using? I am having no problems on any of the pages I have tried using Safari 2.0.3 under OS X 10.4.4. I have only browsed through the site, I have not tried filling out any forms.
    The first place I would look is at the results of putting your pages through the W3C Validator to see if they meet accepted html/xhtml standards. Your Home Page fails with a number of errors listed. Safari is one of the least forgiving of browsers when it comes to rendering non-standard, bad, or incorrect coding of web pages.
    1 Ghz 15 inch PowerBook G4 Mac OS X (10.4.4) 1984 Macintosh

  • What is wrong in this java code?

    Can someone please tell me what is wrong in this java code?
    /* The program is intended to start animating text at the click of a button, pause it at another click and resume at the next click. It should continue like this */
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TextAnime implements Runnable
    JFrame frame;
    boolean flag;
    Thread animeThread;
    JLabel label;
    String[] textArray;
    public TextAnime()
    flag = false;
    animeThread = new Thread(this);
    frame = new JFrame("Animate Text");
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    frame.setLayout(gbl);
    JButton button = new JButton("Start");
    label = new JLabel("Stopped");
    textArray = new String[5];
    String textArray1[] = {"Programmer", "SportsMan", "Genius", "Friend", "Knowledgable"};
    for(int ctr = 0; ctr<5 ; ctr++)
    textArray[ctr] = textArray1[ctr];
    gbc.weightx = 1;
    gbc.gridx = 0;
    gbl.setConstraints(button,gbc);
    frame.getContentPane().add(button);
    ButList bl = new ButList();
    button.addActionListener(bl);
    gbc.gridx = 1;
    gbl.setConstraints(label,gbc);
    frame.getContentPane().add(label);
    frame.setSize(200,150);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setVisible(true);
    public class ButList implements ActionListener
    public void actionPerformed(ActionEvent evt)
    if(flag == false)
    flag = true;
    animeStart();
    else
    flag = false;
    //animeStop();
    public synchronized void animeStart()
    animeThread.start();
    Thread newThread;
    newThread = Thread.currentThread();
    newThread.notify();
    public void animeStop()
    animeThread.interrupt();
    public void run()
    int i = 0;
    try
    while(i == i)
    if(i==5)
    i=0;
    label.setText(textArray);
    animeThread.sleep(1000);
    i++;
    if (flag == false)
    animeThread.wait();
    catch(InterruptedException ie)
    label.setText("Stopped");
    public static void main(String args[])
    TextAnime ta = new TextAnime();
    Please tell me if this can be written in a more simpler manner. Also please correct this code. I am tired after trying many times.

    When I fix your error, compile and run it, I get this exception:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException
         at java.lang.Object.notify(Native Method)
         at cruft.TextAnime.animeStart(TextAnime.java:81)
         at cruft.TextAnime$ButList.actionPerformed(TextAnime.java:63)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    %

  • How to replace & with escape code?

    Hi,
    I want to replace all occurence of & in a string with escape code '%26' . Is the following lines of the code the right way to do this? Please help. Thanks.
    String test;
    test.replace('&', '%26');

    Have you tried it? What was the result?
    Anyway. Looking at the javadoc:
    http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#replace(char, char)
    I see that replace takes a character and replaces it with another character. So it seems that your fragment won't work. Perhaps you ought to look at:
    http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#split(java.lang.String)
    and try something like (untested code):
    String someString = "This & is & a Str&ing";
    String[] elements = someString.split("&");
    StringBuffer buffer = new StringBuffer( elements[0] );
    for ( int i = 1; i < elements.length; i++ ) {
        buffer.append( "%26" );
        buffer.append( elements[i] );
    someString = buffer.toString();Optimization is left as an excercise for the pedantic reader.

  • What is wrong with the idl code generated by packager.exe?

    Hello everybody,
    I am trying to figure out what is wrong with the idl code generated by packager.exe. In the evaluation for the bug posted at http://developer.java.sun.com/developer/bugParade/bugs/4964563.html it says that the IDispatch interface is not exposed correctly and thus early binding of java objects is not possible using the current activex bridge implementation.
    As I am no idl expert I have no idea what that means. However, I managed to dig out the idl code generated by packager.exe for the following example bean:
    package test;
    public class MyBean
         protected int value;
         public MyBean()
         public void setMyValue(int _value)
              value = _value;
         public int getMyValue()
              return value;
         public MyBean getSelfReference()
              return this;
    }The corresponding idl code generated by packager.exe is
    uuid(81B0BF63-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    library MyBean
    importlib("Stdole2.tlb");
    dispinterface MyBeanSource;
    dispinterface MyBeanDispatch;
    uuid(81B0BF64-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanSource {
    properties:
    methods:
    uuid(81B0BF65-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanDispatch {
    properties:
    [id(4097)]
    int myValue;
    methods:
    [id(32768)]
    VARIANT_BOOL equals(IDispatch* arg0);
    [id(32769)]
    IDispatch* getClass();
    [id(32770)]
    int getMyValue();
    [id(32771)]
    IDispatch* getSelfReference();
    [id(32772)]
    int hashCode();
    [id(32773)]
    void notify();
    [id(32774)]
    void notifyAll();
    [id(32775)]
    void setMyValue(int arg0);
    [id(32776)]
    BSTR toString();
    [id(32779)]
    VARIANT wait([optional] VARIANT var0, [optional] VARIANT var1);
    uuid(81B0BF62-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    coclass MyBean {
    [default, source] dispinterface MyBeanSource;
    [default] dispinterface MyBeanDispatch;
    };Does anyone know what is wrong with this code and maybe how to fix the idl code? Generating the dll should then be easy (I already tried several variations of the idl code but as my idl knowledge is limited it didn't really do what I wanted).

    Then the question is why it does work with visual controls (even if you set them to non-visible)?

  • Escape codes for laser printer Kyocera FS-3920dn in reports 6i

    Hi,
    I use many reports for printing on laser printer Kyocera FS-3920DN. But now I need print some reports on special performed paper. For this we added 1 paper tray to printer ( Now we have 2 trays in printer ). How can I define for new reports which tray have to use ??? I wish to specified for report2.rep to use automaticly tray 2. Its a way through PRT file use escape codes ?? Have you any experience pls??

    In the report itself you can use:
    SRW.SET_PRINTER_TRAY('tray');
    see the online help.
    We do it differently, though. Our printers have 2 trays, one with blank paper and one with pre-printed logo paper.
    On each PC there are two printers defined (PRINTER_BLANk and PRINTER_LOGO). They point to the same printer, just a different tray.

  • Help translating a servlet code to bean

    hi all
    i'd like to translate a servlet code to bean code
    the servlet, called from the <img src""> tag in my web page retrieves an images from a database and, setting the response content-type to "image" returns the image.
    i'd like to do it through the common getXxx/setXxx methods of a bean
    how to do it?
    that's the servlet's code:
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, java.io.IOException {
            response.setContentType("text/html");
            ServletOutputStream out = response.getOutputStream();
            try
                Connection connection=(Connection)getServletContext().getAttribute("connection");
                Statement s=connection.createStatement();
                response.setContentType("image/jpeg");           
                ResultSet rs=s.executeQuery("select "+request.getParameter("col")+" from products where id="+request.getParameter("id"));           
                while(rs.next())
                    out.write(rs.getBytes(request.getParameter("col")));
            catch(SQLException s)
                response.setContentType("text/html");           
            catch(NullPointerException n)
            out.close();
        } thanx in advance
    sandro

    try this:
    <%
    response.setContentType("text/html");
    try {
    Connection connection=(Connection)application.getAttribute"connection");
       Statement s=connection.createStatement();
       response.setContentType("image/jpeg");
       ResultSet rs=s.executeQuery("select "+
                  request.getParameter("col")+
                 " from products where id="+
                  request.getParameter("id"));
       while(rs.next()) {
    %>
          <%= rs.getBytes(request.getParameter"col"))) %>
    <%
    } catch(SQLException s) {
       response.setContentType("text/html");
    } catch(NullPointerException n) {
    %>

  • Parsing unicode escape codes

    Hi,
    I'm looking for a way to covert a string, wich is read from a file, containing unicode escape codes.
    In short this means the file contains a string e.g. "Some text\nOn a new line" which i want to get into a String object as if it was the result of
    String s = new String("Some text\nOn a new line"); I've been looking in the java docs but didn't find a function to do that conversion (though the compiler has to do it all the time...).
    Any ideas?

    Thats not what i'm looking for.
    What i've got is a file that look like this:
    1="Somestring"
    2="another message\nAnd some more text"
    3="text with\tTabs\n\tTo get some layout"
    etc...
    It's used as a stringtable for a program that has to be aviable in multiple languages. There versions of the file in different languages.
    What i want is to be able to get e.g. string number 2 out of it in such way that System.out.println(string2); will give the following result:
    another message
    And some more text
    instead of:
    "another message\nAnd some more text"

  • 10g Upgrade - XML Parser errors with certain escape codes (&#x0338)

    NLS_CHARACTERSET = WE8ISO8859P15
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    Since our 10.2.0.3.0 upgrade (from 9.2.0.1.0) our xml fails with the following message:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00217: invalid character 824 (U+0338)
    Error at line 4
    We are using escape codes in our xml that have worked fine on 9i. Example xml:
    <PRINT_LAYOUT_FOOTER>&#x0338;&#x0338;&#x0338;&#x0338;This map was created with Promap</PRINT_LAYOUT_FOOTER>
    I am completely flummoxed - Any ideas?

    You've switched from a Java Based Parser to a 'C' based parser, which is much, much faster. However one of the requirements of the 'C' implementation is that all characters in the database character set. I'm guessing that if you switch to AL32UTF8 for the database character set the problem will go away. BTW 9.2.0.1.0 was desupported for XML related features when 9.2.0.3.0 was released.

  • UPDATE ... FROM, wrong translation in Scratch Editor

    I use SQL Developer 1.5.0.52
    I want migrate from T-SQL(MSSQL 2005) to PL/SQL(Oracle 10g) in the Scratch Editor. I often use the UPDATE ... FROM command in T-SQL, the tranlation in the Scratch Editor is wrong with more than one join. I need a quick solution for my problem!
    Little example:
    Tables:
    drop table A;
    create table A(
    a1 int,
    a2 int
    drop table B;
    create table B(
    b1 int,
    b2 int
    drop table C;
    create table C(
    c1 int,
    c2 int
    insert into A values( 1, 1);
    insert into A values( 2, 2);
    insert into A values( 3, 3);
    insert into B values( 1, 1);
    insert into B values( 2, 2);
    insert into B values( 3, 3);
    insert into C values( 1, 11);
    insert into C values( 2, 22);
    insert into C values( 3, 33);
    T-SQL with 2 tables
    update A
    set A.a2 = c.c2
    from A inner join C on A.a1 = c.c1
    PL/SQL with 2 tables
    The Scratch Editor translates it correct and I can work with this translation.
    MERGE INTO A
    USING (SELECT * FROM C) C
    ON ( A.a1 = c.c1 )
    WHEN MATCHED THEN UPDATE SET a2 = c.c2;
    T-SQL with 3 tables
    Now we take a table more between A and C (it's simple in T-SQL):
    update A
    set A.a2 = c.c2
    from A
    inner join B on A.a1 = B.b1
    inner join C on B.b2 = c.c1
    PL/SQL with 3 tables, wrong translation
    The Scratch Editor translates it in a difficult form and it's only correct, when the where clause get only one ROW.
    ==> The solution is wrong for all other cases( more then one ROW)
    UPDATE A
    SET ( a2 ) = ( SELECT c.c2
    FROM A
    JOIN B on A.a1 = B.b1
    JOIN C on B.b2 = c.c1 )
    WHERE ROWID IN (SELECT A.ROWID
    FROM A
    JOIN B on A.a1 = B.b1
    JOIN C on B.b2 = c.c1);
    PL/SQL with 3 tables, correct translation(my desire)
    My own translation:
    MERGE INTO A
    USING ( select B.b1, B.b2, C.c1, C.c2
    from B
    inner join C on B.b2 = C.c1) e
    on (A.a1 = e.b1)
    WHEN MATCHED THEN UPDATE
    set A.a2 = e.c2;
    I want the correct translation with the Scratch Editor or I must write an own tool for this case. It is possible to config the Scratch Editor for specific cases?

    Hi Carlos,
    Thanks for this feedback. The nice testcase really helps.
    I have replicated your issue and added the details to the bug
    6976327: OTNFORUMS : UPDATE JOIN CLAUSE NOT TRANSLATED CORRECTLY
    As they are in a similar area to the other issue you reported.
    You solution is fine, but I would like to suggest a small change as to how the Translator should behave.
    T-SQL
    update A
    set A.a2 = c.c2
    from A
    inner join B on A.a1 = B.b1
    inner join C on B.b2 = c.c1
    Your Solution
    MERGE INTO A
    USING ( select B.b1, B.b2, C.c1, C.c2
    from B
    inner join C on B.b2 = C.c1) e
    on (A.a1 = e.b1)
    WHEN MATCHED THEN UPDATE
    set A.a2 = e.c2;
    Suggested Solution
    MERGE INTO A
    USING ( SELECT a.rowid a_rowid, c.c2
    from A
    inner join B on A.a1 = B.b1
    inner join C on B.b2 = c.c1) x
    on (A.rowid = x.a_rowid)
    WHEN MATCHED THEN UPDATE
    set A.a2 = x.c2;
    I think the suggested solution is a little more easier to translate and maintain.
    I keep the entire set/from/on clauses together and just added the rowid. . Then I only have to reference the rowid in the ON clause to specify which rows to change. In your solution the on clauses are broken up between the subquery and the on condition.
    Any comments appreciated.
    Thanks
    Dermot.

  • Translate the Escape characters to sapce in mySAP ERP

    Hi all,
    I am working in mysap ERP(Unicode system). I want to TRANSLATE the Escape characters to SPACE. It is giving me a error saying that the internal table must be a character type. Please let me know how to solve this problem.
    Please find the details:
    I have 2 internal tables 1) t_file 2) t_trans.
    DATA:    BEGIN OF T_FILE OCCURS 0,
               REC(2600)  TYPE C,
             END OF T_FILE.
    DATA:    BEGIN OF T_TRANS OCCURS 0,
               X     TYPE X VALUE '00',
               C_00  TYPE C VALUE ' ',
               SOH   TYPE X VALUE '01',
               C_01  TYPE C VALUE ' ',
               STX   TYPE X VALUE '02',
               C_02  TYPE C VALUE ' ',
        end of t_trans.
    T_Trans is the conbination of character & hexa decimal.
    I am using the statement:
         TRANSLATE T_FILE USING T_TRANS.
    I am getting the error for the TRANSLATE.
    Thanks & Regards,
    Srinivas.

    Hi srinivas,
    try this one..
    DATA: BEGIN OF T_FILE OCCURS 0,
    REC(2600) TYPE C value
    END OF T_FILE.
    DATA : T_TRANS(20) VALUE '0 0 0 1 0 2 '.
    WRITE : / T_FILE.
    translate t_file using t_trans.
    WRITE : / T_FILE.
    regards
    satesh

Maybe you are looking for

  • Connection authentication error occured

    Hi, i'm using netbeans 6.8 and java DB ClientDriver.I want to insert data into database table, so after inserting data into required fields and by clicking on submit button it is displaying the message as :Connection authentication failure occurred.

  • Activation centre is not working for cs2

    How is it possible that the activation centre is not working?

  • How to optimize this select statement  its a simple select....

    how to optimize this select statement  as the records in earlier table is abt i million and this simplet select statement is not executing and taking lot of time   SELECT  guid                   stcts         INTO table gt_corcts   FROM   corcts   FO

  • Not able to Cif Safety stock.

    Hi All I am not able to cif the safety stock.I tried RIMODINI also.The parameters like lot size ,text etc I m able to cif. But not safety stock.Can anyone help me in this. R

  • DLL files not supported on soundbooth CS4

    Hi there, I use soundbooth CS4 and downloaded some plugins, After the plugins are downloaded i open the downloads folder on my computer there is the plugin and a read me file. i click on the plugin and soundbooth opens. but when its done loading i ge