Problems with characters like "Á", "É"

Hi, I'm having trouble when reading data with characters "Á", "É", "Ñ" from a database. If I use this:
stmt = this.conexion.createStatement ();it works fine, but of course cannot access the records in the ResultSet but with method next ().
As I wanted to use absolute (), first (), etc. I wrote that:
stmt = this.conexion.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);but when I try to read for example the word "PÉREZ", I get the word "0x50C38952455A".
Can anyone help? Thanks in advance.

This is my connection code:
      Class.forName("oracle.jdbc.driver.OracleDriver");
      conn = DriverManager.getConnection(url, login, password);The code that works:
(1)
    stmt = conn.createStatement ();The code that doesn't:
(2)
    stmt = conn.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);Then, the same code to execute the query:
    rs = stmt.executeQuery ("SELECT MY_VARCHAR_FIELD FROM MY_TABLE");And to retrieve the value:
    String myValue = rs.getString ("MY_VARCHAR_FIELD");The odd thing is that before using a scrollable ResultSet (code snippet (1)), this worked perfectly. But, since I changed to code snippet (2), it doesn't for those characters.

Similar Messages

  • Issue with characters like u0151 in maintaining text

    Hi,
    When characters are entered as per HU language, we face trouble with characters like ő Ő into text fields like in sales order. As soon as this letter is entered, it is changed to 'O' as in EN language.
    changing -> Options-> Character set -> Central European, makes the display  ő as  ő .
    1. Is this the permanent solution for this problem ? or do we have any better idea ? 
    2. Does this character set do any command in printing (SAP Scripts/ Smart Forms / PDF) ?
    Please let me know your thoughts.
    Thanks
    Seema

    Please post ASP.NET related questions in the ASP.NET forums:
    http://forums.asp.net

  • Petition: problems with characters in mail sent to Windows computers

    Sign this petition by replying to this thread if you have problems with garbled characters when sending e-mails to Windows computers. Let Apple know It's a huge problem for non-English e-mailing customers and there is no way to definitively fix it.
    I'll start it off:
    Christoffer Du Rietz
    PowerBook G4   Mac OS X (10.4.7)   17" last generation G4

    I'm not interested in knowing the gory technical
    details, I want Apple to fix the problem. The problem
    have existed for years. Non-english speaking Mac
    users run a high risk of sending e-mails that look
    like pure garbage on computers that use Windows. This
    does not help when trying to convince people that
    Macs are superior.
    I want Apple to fix Mail. Because it is
    2006!
    Your views are reasonable, but you need to send them to Apple, not just to the other users trying to provide help with problems in these forums. The channel for this is
    http://www.apple.com/macosx/feedback/
    You could also consider providing some feedback to MS. The longstanding bugs in Outlook that cause these problems represent really second-rate programming (even if it makes sense for Apple to somehow cater to them in Mail's behavior).

  • Txt to xml. Problems with characters(&, , ',...)

    I want to generate a xml file with text from a txt file but i have problems with special characters such as &, <... I'd like to know if there�s any class or library to filter the text in order to generate my xml without problems.
    Thank you.

    Use JDOM to generate your XML. It will worry about escaping issues for you.
    Here's a (probably rather inelegant) example for you to play around with:
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    public class DateBoom {
         public static void main(String[] args)
              throws Exception
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              String dodgyText = "< & '";
              Document document = builder.newDocument();
              Element root = document.createElement("root");
              root.setAttribute("dodgy",dodgyText);
              document.appendChild(root);
              Element child = document.createElement("child");
              root.appendChild(child);
              child.appendChild(document.createTextNode(dodgyText));
              Transformer transform = TransformerFactory.newInstance().newTransformer();          
              Source source = new DOMSource(document);
              Result result = new StreamResult(System.out);
              transform.transform(source,result);
    }Your alternative is to use something like String regular expressions (regex) to do this manually, but the XML oriented libraries will catch more corner cases than you're likely to anticipate, making them more reliable.

  • Problem with characters in text field

    hi all
    i am missing a few characters, once i load text into a dynamic text field. chars are not missing per say; they are being replaced with empty squares.
    characters like the euro sign and accentuated german a letter.
    whats is weird is that other accentuated german letters do appear. so only a few selected are missing.
    How ive set up the fla:
    1) i've added 4 text fields to the stage in the font im using, Arial, one for each font style: normal, italic, bold and bold italic, and in all 4 fields ive embedded all latin characters (to include the german accentuaded characters and im guessing it's in the punctuation group that holds the euro sign, so that one is also embedded), besides lowercase, uppercase, numerical, and all the default groupd to include basic text.
    2) i've got a dynamic text field, created with createTextField, and setup the following ActionScript (2):
    this.createTextField("T_text",1,0,10,Stage.width-60,50);
    var myFmt = new TextFormat();
    myFmt.size = 12;
    myFmt.leading = 3;
    myFmt.font = "Arial";
    T_text.html = true;
    T_text.autoSize = "left";
    T_text.multiline = true;
    T_text.wordWrap = true;
    T_text.selectable = false;
    T_text.embedFonts = false;
    T_text.textColor = "0x666666";
    T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
    T_text.setNewTextFormat(myFmt);
    now, im calling text from a database.
    when calling the text from the browser  url bar, there's no chars missing.
    its just when i make this call from flash and load the text into the dynamic text field, that characters go missing.
    below is a link to a print screen of the faulty text that is displayed in flash's dynamic text field.
    http://img210.imageshack.us/img210/340/utf8.png
    any ideas? i mean, it seems that the arial font is missing a few accentuated characters! because the code i have setup loads other accentuated characters.
    anyone has seen this issue before and know how to solve it?
    regards

    no.
    you assigned your embedFonts property to be false.
    look, you can test if you've embedded fonts correctly by using:
    T_text._rotation=3;
    if you see no text, you're not embedding fonts correctly.
    so, use:
    T_text.embedFonts=true;
    and then test.  if you see no text, use:
    click on the upper right of your library panel > new Font > select Arial and tick the symbols you need to embed > tick export for actionscript and assign a linkage id (eg, ArialID). click ok.  then use:
    this.createTextField("T_text",1,0,10,Stage.width-60,50);
    var myFmt = new TextFormat();
    myFmt.size = 12;
    myFmt.leading = 3;
    myFmt.font = "ArialID";
    T_text.html = true;
    T_text.autoSize = "left";
    T_text.multiline = true;
    T_text.wordWrap = true;
    T_text.selectable = false;
    T_text.embedFonts = true;
    T_text.textColor = 0x666666;  // no quotes here.  this is a number
    T_text.htmlText = _global.gallery_1_image_text_1; // this holds the text im displayed, called in from a database.
    T_text.setTextFormat(myFmt);  // to format the above text, use setTextFormat().  if you want to format text added after this line, use setNewTextFormat()

  • Problem with gcc-like inline assembly in cc

    Hi,
    I am trying to compile the following code for a sparc machine using sun studio 12.
    #define MAGIC(n)  asm("sethi %0, %%g0" : :"g"(n));
    int main(int argc, char **argv)
            int x=1;
            MAGIC(x);
            return 0;
    }I am using the following command:
    cc -xO3 -xtarget=ultra2 -m32 -xarch=sparcvis -xregs=no%appl -w test.c -o test
    and I get the following error:
    cg error (as) : "__gnu_asm_inline_fake_test.c (template for __gnu_asm_inline_temp_func_001)", line 1 : statement syntax
    cc: cg failed for test.c
    Isn't Sun cc supposed to support gcc-like inline assembly? If so, what is the problem with the code above?
    Thanks in advance,
    Nick

    Hi,
    we have the same Problem with the inline assembler. We are using Sunstudio 12 on x86 and tried to get this code compiled (Sunstudio 12 should be gas compatible).
    any ideas ?
    thanks
    Dieter
    #define HEC_HTONF(x) \
    (__extension__ \
    register HVB::float32_t __v, __x = (x); \
    __asm__ ( \
    "bswap %0" \
    : "=r" (__v) \
    : "0" (__x) \
    __v; \
    #define HEC_HTONLF_INPLACE(x) \
    __asm__ ( \
    "leal %0, %%ecx \n\t" \
    "movl (%%ecx), %%eax \n\t" \
    "movl 4(%%ecx), %%edx \n\t" \
    "bswap %%eax \n\t" \
    "bswap %%edx \n\t" \
    "movl %%eax, 4(%%ecx) \n\t" \
    "movl %%edx, (%%ecx) \n\t" \
    : "=m" (x) \
    : "m" (x) \
    : "%eax", "%ecx", "%edx" \
    );

  • IOmega incompatibility with characters like :  /;  " ;...

    Hi !
    Trying to save documents (Word, PDF,...) on the external iOmega drive,
    The external drive disk refuses to copy all documents those name includes
    characters like : / ; "" ; and a few others...
    How can I solve the Pb ??? beside changing all my docs name, one by one ....
    Thanks,
    Odile
    Mac OS X, version 10.3.9
    Processeur 1.25 GHz Power G4
    Mémoire 2 Go DDR SDRAM
    Modèle d’ordinateur: PowerBook G4 15"
     Type de processeur: PowerPC G4  (1.1)
     Nombre de processeurs: 1
     Vitesse du processeur: 1.25 GHz
     Cache de niveau 2 (par processeur): 512 Ko
     Mémoire: 2 Go
     Vitesse du bus: 167 MHz
     Version ROM de démarrage: 4.7.1f1
     Numéro de série: V73388TLNRZ

    Well the colon and backslash are used the file system so they are typically disallowed in many modern file systems. If the drive is formatted using the FAT32 partition type you are limited even more about which characters you can use.
    My recommendation is to the underscore or space instead of the forward slash, or colon.

  • Text and Fonts: rotate a text with characters like áéíúó

    I´m spanish and i need to rotate a text wich contains characters like áéíúó.
    Any ideas on how could it be done?
    thanks,

    You can use [localization |http://jfx.wikia.com/wiki/Proposal_for_the_string_literal_translation] and animation.
    Main_sp.fxproperties
    "Text"="áéíúó"
    Main.fx
    import javafx.animation.*;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.text.*;
    import javafx.scene.transform.*;
    import java.util.Locale;
    Locale.setDefault(new Locale("sp"));
    var angle = 0.0;
    Timeline {
        repeatCount: Timeline.INDEFINITE
        keyFrames: at(3s) { angle => 360 tween Interpolator.LINEAR
    }.play();
    Stage {
        title: "Rotated text"
        width: 200
        height: 200
        scene: Scene {
            content: Text {
                transforms: [
                    Translate{ x: 50 y: 50},
                    Rotate { pivotX: 30 pivotY: 3 angle: bind angle }
                font: Font { size: 24 }
                content: ##"Text"
    }

  • Problem with characters of the forms

    I have installed an IAS 10.1.2.0.2 (forms, reports and discoverer components) in a solaris 10 SPARC machine IASDB character set:
    AMERICAN_AMERICA.EL8ISO8859P7.
    I've imported some .fmb forms from windows platform and recompiled to make them .fmx.
    Though the re-compilation is successful the greek characters are shown ???? like that (these are not characters taken from the DB but labels in the forms).
    My .cshrc file has the following values:
    #ident "@(#)local.cshrc 1.2 00/05/01 SMI"
    umask 022
    set path=(/bin /usr/bin /usr/sbin /usr/ccs/bin /usr/ucb /etc .)
    if ( $?prompt ) then
    set history=96
    set prompt="`whoami`@`hostname`: "
    set filec
    endif
    setenv TEMP /tmp
    setenv TMPDIR /tmp
    setenv EDITOR vi
    setenv ORACLE_SID IASDB
    setenv ORACLE_HOME /oracle/OraHome_2
    setenv FORMS_HOME /oracle/OraHome_2/forms
    setenv PATH $ORACLE_HOME/bin:$FORMS_HOME/fmx:/usr/local/bin:/usr/openwin/bin:/opt/Adobe/Reader8/bin:/usr/sbin:/opt/sfw/bin:${PATH}:/sbin
    setenv NLS_LANG AMERICAN_AMERICA.EL8ISO8859P7
    alias h history
    alias s sync
    I've changed my locale setting to: LANG=el_GR.ISO8859-7
    also i have in my envFile entered NLS_LANG=AMERICAN_AMERICA.EL8ISO8859P7
    and finally in frmcmp_batch.sh have set:
    NLS_LANG=AMERICAN_AMERICA.EL8ISO8859P7
    export NLS_LANG
    I still get the ???? characters instead of greek fonts.
    can anyone help, this is urgent.
    Thank you

    When translating your form MAKE SURE YOU LOGIN TO SAP WITH THE TARGET LANAGUAGE FOR TRANSLATION!
    For example, if you have an english form and want to translate it to spanish, login in spanish, go to SFP and do your translation to spanish. It should have a pop-up shown that says "original language" is English....keep it as that.
    Not sure why it works this way, but it does. I would love to be able to login in English and then simply do all my other translations from there, but it doesn't work that way.

  • Problem with characters Converting OTF Spool to PDF

    Hello All,
    Im working on ECC6.0 system. I have a Z report where it will take spool number and mail ID as input.
    It will check wheter the spool is of type OTF of ABAP List, according to that it will use the FMs ONVERT_OTFSPOOLJOB_2_PDF & CONVERT_ABAPSPOOLJOB_2_PDF.
    Now it will download the PDF internal table data into a file using OPEN DATA SET statement as shown below.
      OPEN DATASET gv_dsn FOR OUTPUT IN BINARY MODE.
    *Download the file to application server
      LOOP AT gt_pdf_output.
        TRANSFER gt_pdf_output TO gv_dsn.
      ENDLOOP.
      CLOSE DATASET gv_dsn.
    and it will ZIP the PDF as shown below.
    * open the file from application server for zipping.
      OPEN DATASET gv_dsn FOR INPUT IN BINARY MODE.
      READ DATASET gv_dsn INTO lv_content.
      CLOSE DATASET gv_dsn.
      CREATE OBJECT go_zip.
      go_zip->add( name = gv_file content = lv_content ).
      gv_zip_content    = go_zip->save( ).
    * Convert the xstring content to binary
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer        = gv_zip_content
        IMPORTING
          output_length = gv_file_length
        TABLES
          binary_tab    = gt_data.
    After that the ZIP file conataining the PDF will be sent as an attachement to the mail ID given as input.
    Now the problem is some characters of Czech are not coming properly when the attachement is opend once the mail is received. Can any one tell where the problem is and solution.
    Im getting the message "Can not extract the embedded front 'CourierNewL2'. Some characters may not display or print correctly." while opening the PDF in the ZIP attachment.
    Thank you.
    Best Regards,
    Sasidhar Reddy Matli.

    hi
    u also check the following link
    Re: how call FM otf to pdf in a report
    Re: otf to pdf
    Re: Error while converting OTF into PDF in CONVERT_OTF FM
    Re: Convert OTF to PDF problem
    Edited by: krupa jani on Jul 15, 2009 12:58 PM

  • LoadVars problem with characters

    hello everyone, i am a Actionscript novice and I have a small
    problem.
    i am using the LoadVars class and the toString method to
    retrieve some result from the web. The result obtained is
    represented by the following string (which is not the full string,
    as it'll be much longer to write) :
    sendRPCDone%28frameElement%2C%20%22chelsea%22%2C%20new%20Array%28%22chelsea%22%2C%20%22che lsea%20fc%22%2C%20%22
    The problem is: how do I convert these characters in Unicode
    mode, such as %28, into ' ( ' ? Is there any special function?
    thanks
    K

    thanks blemmo

  • Problem with characters from SerialPort

    Hii!! My problem is: How to convert the characters of SerialPort ??
    For example, I receive from SerialPort:
    sESB="U����U����U����+�&#154;&#131;�"DDDDDDDDDDDDDDDDDDZ#�&#142;fffffffffffffffffffffffffffffffffff�"
    my programa for convert is:
    public String getASC(String sESB)
         String sASC = "";
         CharToByteConverter cb = CharToByteConverter.getConverter("CP500");
         sEBC = new String(cb.convertAll(sESB.toCharArray()));
         return sASC;
    but I obtain :
    ����������������{�����������"�������������������]�����������������������������������������W
    I want to obtain normal characters, for example 'hello' .
    Thanksss

    Hi!! My way for convert the bytes is :
    private String readData()
    byte[] buffer = new byte[32];
    try
    while( IS.available() > 0 ){ int numBytes = IS.read(buffer); }
    catch (IOException e)
    return( new String(buffer) );
    First, for example I obtain 'OK', 'CARRIER DETECT'... this works fine, but then the data I need are:
    UUU+??\"DDDDDDDDDDDDDDDDDDZ#?ffffffffffffffffffffffffffffffffff
    I don't know .... help!! Thanksssssssssssss

  • Interactive Reports - problem with umlaute like 'ü'

    Hello,
    when i display an interactive report, all data and umlaute like "ü" was display correct.
    But when i set an filter like "häuser" and then press search, the filtertext was changed to: 'häuser'.
    Is this a language or character-set problem of the ajax engine?
    thank you for any hint.
    Daniel

    hi there,
    this helped me to solve the problem:
    http://www.oracle.com/technology/products/database/application_express/html/freq_solved_faq.html#04
    regards
    frank

  • Problem with statement like

    Dear all
    when I do a select I can work with the statement like
    CONCATENATE WA_DEL-FIELD '%' INTO I_FIELD.
          SELECT * FROM ZTABLE INTO TABLE IT_ITAB
            WHERE FIELD LIKE I_FIELD.
    how do I can do the same question for a if command for a field ?
    I was thinking with the statement (FIELD = ABCDEFG) (I_FIELD-SIGN = I / I_FIELD-OPTION = 'EQ'  / I_FIELD-LOW = 'ABC*'
    IF FIELD IN I_FIELD
    should work, but it was not working.....  what do I need to do

    Hello,
    Silly mistake ... You have to use the OPTION as CP ( C ontains P attern ) instead of EQ
    (I_FIELD-SIGN = I / I_FIELD-OPTION = 'CP' / I_FIELD-LOW = 'ABC*'
    BR,
    Suhas

  • Cm:select performance problem with multiple likes query clause

    I have query like <br>
              <b>listItem like '*abc.xml*' && serviceId like '*xyz.xml*'</b><br>
              Can we have two likes clauses mentioned above in the cm:select. The above is executing successfully but takes too much time to process. <br><br>
              Can we simplify the above mentioned query or any solution. Please help me in this issue.<br><br>
              Thanks & Regards,<br>
              Murthy Nalluri

    A few notes:
    1. You seem to have either a VPD policy active or you're using views that add some more predicates to the query, according to the plan posted (the access on the PK_OPERATOR_GROUP index). Could this make any difference?
    2. The estimates of the optimizer are really very accurate - actually astonishing - compared to the tkprof output, so the optimizer seems to have a very good picture of the cardinalities and therefore the plan should be reasonable.
    3. Did you gather index statistics as well (using COMPUTE STATISTICS when creating the index or "cascade=>true" option) when gathering the statistics? I assume you're on 9i, not 10g according to the plan and tkprof output.
    4. Looking at the amount of data that needs to be processed it is unlikely that this query takes only 3 seconds, the 20 seconds seems to be OK.
    If you are sure that for a similar amount of underlying data the query took only 3 seconds in the past it would be very useful if you - by any chance - have an execution plan at hand of that "3 seconds" execution.
    One thing that I could imagine is that due to the monthly data growth that you've mentioned one or more of the tables have exceeded the "2% of the buffer cache" threshold and therefore are no longer treated as "small tables" in the buffer cache. This could explain that you now have more physical reads than in the past and therefore the query takes longer to execute than before.
    I think that this query could only be executed in 3 seconds if it is somewhere using a predicate that is more selective and could benefit from an indexed access path.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

Maybe you are looking for

  • How do you create outlines from strokes in cs5

    how do you create outlines from strokes in cs5

  • Dad ready to throw the ipad!! closing out of photos

    Hi, I bought my dad an ipad. I don't have one (have a macbook pro). He called me extremely frustrated because he was checking his email and he clicked on a link someone sent him of a slide show of photos and cannot get out of it. I've tried everythin

  • Requirement Tracking Number in SRM

    Hi All, We have created Req. Tracking No. field on basic data screen of shopping cart, requirement that when user creates shopping cart, system should filled this field with user ID of the user who is creating the shopping cart irrespective on whose

  • Failing to install Whatsup App on 8520

    I am trying to install Whatsup on my 8520 but get the following error message when I try to download the App: "This application requires the following modules which are not installed: net_rim_crypto; net_rim_bb_maps_api; net_rim_bbapi_unifiedsearch.

  • Best photo editing software for HDR and Blk and white? Thx!

    This is my first mac and new to photo editing.. I was wondering what Software I should get for photo editing? I found the HDR function on my iPhone and love the pictures that it takes... I wanted to get more out of my nikons and do some HDR editing a