Get Euro Character

hello. How I can get the Euro Character ?. I�m Using the ISO-8859-15 charset in an content Server Page and then i�m trying to get the information from this page. With my sniffer i see that all the petition is using this charset. To connect to the page I use this code.
BufferedReader paginaHtml = new BufferedReader( new InputStreamReader( url.openStream(),"ISO-8859-1") );
      String aux;
      StringBuffer sb = new StringBuffer();
      while((aux = paginaHtml.readLine()) != null) {
         sb.append(aux);
      System.out.println("-->buffer: " + sb.toString());

First of all it isn't clear to me why, when the page is encoded with ISO-8859-15, you would deliberately decode it with ISO-8859-1. I don't know offhand which code points are different, I will leave you to look that up, but you would be garbling those characters.
However, the real question is what you mean by "get". That code, with accurate encoding names, should read the page into your program.

Similar Messages

  • Euro Character with US7ASCII

    Hi,
    We are using Java based Internet application with below characterset configuration.
    Client Machine OS : Windows
    Browser Character Encoding Setup : ISO-8859-P1 (http-equiv="content-type" content="text/html; charset=iso-8859-1")
    JDBC Type : Oracle 10.2.04 JDBC Thin Client (ojdbc14.jar, classes12.jar)
    Oracle DB Character Set : US7ASCII
    When we try to insert Euro Character, it is getting inserted into DB properly (Hex:80) and getting displayed properly in browser too.
    I know Euro is not part of US7ASCII Char set. I would like to understand
    how the PASS-THRU scenario is happening here ?
    how ISO-8859-P1 is showing the Euro Symbol on Browser?
    Thanks in advance,
    Thanks,
    dan

    This is a combination of the following three effects:
    1. HTML browsers generally try to do their best to properly display websites created by people not following required standards. iso-8859-1 has been historically regarded as the character encoding of US and Western European Windows workstations. This has not been correct for a long time already, as Microsoft extended the ISO code page and created what is known as MS Code Page 1252 (windows-1252). Browsers try to correctly display pages that include Windows-specific characters by treating the pages as windows-1252 even if they are defined as iso-8859-1.
    2. For performance reasons, Oracle JDBC Thin uses simplified conversion from Unicode UTF-16 to US7ASCII by simply ignoring the upper byte of each two-byte code. This allows such bytes as 0x80 to go through to the database. In one of the new JDBC releases, we plan to introduce a flag to force the conversion to go through standard path so that replacement characters are used as it is in case of OCI.
    3. As the HTML pages are marked as iso-8859-1 and not windows-1252, the 0x80 code coming from the browser is not correctly converted to Java UTF-16. The code should be converted to U+20AC but it seems to be converted to U+0080.
    -- Sergiusz

  • Problem with the EURO character

    I can't see the Euro character and I don't understand why. I use the symbol \u20AC and it doesn't work. I have use some fonts which allow the symbol but I only get a white space or nothing.
    I haven't tried to print it but I'll try. This problem happens trying to show in JLabels or JTextFields.
    Does anyone know what's wrong?
    I'm working with JDK 1.3.

    Hi Andres,
    I've seen this situation before with several characters that don't display in certain fonts even though font.canDisplay(char) evaluates true.
    For example, Courier New (among many others) and \u20ac . (I don't know why this is?)
    Anyway, use the Ariel Unicode MS font and it will display.
    Regards,
    Joe

  • Im getting the character '*' in my Query

    Hi:
    I made a Query of Net value shipment for a company per month.  When I execute the Query I get the character ''. I Check my Infocube and it has the indormation wright. When I see the query at year/week it result that two weeks has numbers but other two has again ''.
    Any idea why is that.
    Points for helpfull answers.

    Hi,
    This happens because key figure, e.g. Net Value in those two weeks consists of multiple currencies, perhaps $USD and Euro.
    What you can do now is to use Currency Translation in the key figure's property and choose a proper Currency Conversion Key for the key figure. This will translate foreign currencies into desired local currency.
    Best wishes,
    Syuhair.

  • Not getting Euro Symbol in PDF Report using XML Publisher

    Hi,
    We have developed an Oracle Report from Report Builder 6i and also a Template in RTF Format.
    We are using XML Publisher to display our XML Output in PDF Format to Users..
    There is a Field called Comments on Customer Transaction Form, where user can enter any characters and that we are querying in Report and displaying on the PDF Output.
    Currently, the user entered a Euro Character on the comments section and that was not visible to user on PDF Report and replaced by a Question Mark as below:
    "3% price reduction ?89.91, 20% marine"
    When i am Querying to the Database, i am able to see the Euro Symbol, but when i checked the XML generated on the Unix Box for the Report. I found as below:
    "3% price reduction \342\202\25489.91, 20% marine"
    So, the Euro Symbol on the database is replaced by " \342\202\254" in the XML Output and ? in the PDF Outbut.
    Please help ASAP.
    Regards
    Saurabh Jaiswal

    one way
    value set based on view (view - select level id, chr(level) cl connect by level <= 500)
    for example, chr(64) - @
    so in xml you have code of @. sample xml is
    <ROWSET>
      <ROW>64</ROW>
    </ROWSET>in rtf template pick
    <?xdofx:chr(to_number(ROW))?>
    select chr(14844588)  from dual
    €Edited by: AlexAnd on Aug 23, 2011 12:46 AM

  • How to get each character in a string

    as in 'C' we use arrays to get each character of a string stored in array.how can we get each character of a string stored in a variable.

    Hi,
    For that you need to do offset.
    for example one variable called VAR contains string 'HUMERAH'.
    if you want each character of that string then you need to decalre as many variable as the number of string.
    like
    data : var1(1),
             var2(1),
    var(3),
    var(4).
    var1 = var+(1).
    var2 = var+1(1).
    var3 = var+2(1).
    var4 = var+3(1).
    now var1,var2,var3,var4. contains the single characters.
    Regards,
    Guru
    mark helpful answers

  • Unable to get Euro symbol in excel output

    Hi,
    I have developed one template which will be used in EBS.I am getting Euro symbol correctly in PDF output but not able to see the Euro symbol in Excel output.
    Please Help!!!!
    Thanks,
    Mahesh

    Check this
    [http://help.sap.com/saphelp_nw04/helpdata/en/90/78f078030211d399b90000e83dd9fc/frameset.htm]
    also check the SAP Note 129581

  • How to get one character at a specified index and put it in a mutablestring

    I am new in cocoa programing and i am stock.
    I am trying to get a character in a NSString and i want to put it in a NSMutableString with the command appendString.
    For now it's not working. I try with different approach but i didn't find the right way to do that. It's probably very simple but i just don't see hit.
    I try with characterAtIndex and with getCharater. And now i am thinking to use charcaterRange but i don't know how to articulate an NSRange.
    Maybe somebody could show an example of of what i have to do to do that.
    I put this <<<<<<<<<<<<<<<< to show where in my code it's not working
    Thanks a lot for your help it's very appreciate.
    *The header:*
    #import <Cocoa/Cocoa.h>
    @interface Controleur : NSObject
    NSMutableArray *touche_presser;
    NSMutableArray *typedevariable;
    NSMutableString *formule;
    int calculencours;
    int i;
    int n;
    IBOutlet NSTextField *affichagede_laformule;
    IBOutlet NSTextField *informationdesupport;
    -(void) awakeFromNib;
    -(IBAction)touche_clear:(id)sender;
    -(IBAction)touche_0:(id)sender;
    -(IBAction)touche_1:(id)sender;
    -(IBAction)touche_2:(id)sender;
    -(IBAction)touche_3:(id)sender;
    -(IBAction)touche_4:(id)sender;
    -(IBAction)touche_5:(id)sender;
    -(IBAction)touche_6:(id)sender;
    -(IBAction)touche_7:(id)sender;
    -(IBAction)touche_8:(id)sender;
    -(IBAction)touche_9:(id)sender;
    -(IBAction)touche_plus:(id)sender;
    -(IBAction)touche_moins:(id)sender;
    -(IBAction)touche_multiplier:(id)sender;
    -(IBAction)touche_diviser:(id)sender;
    -(IBAction)touche_egale:(id)sender;
    -(NSString *) constructionde_laformule;
    -(NSNumber *) analysed_unerafale: (NSString *) elementd_uneformule;
    @end
    *The Methode:*
    -(NSNumber *) analysed_unerafale: (NSString *) elementd_uneformule;
    // Ici, j'analyse une partie de la formule et retourne le résultat (nsnumber)
    // dans la variable resultatde_l_analyse_de_larafale
    int ia;
    int nombrede_caractere_dans_element_de_laformule;
    NSNumber *resultat_actuel;
    resultat_actuel = [[NSNumber alloc]initWithInt:0];
    NSNumber *resultat_precedant;
    resultat_precedant = [[NSNumber alloc]initWithInt:0];
    NSNumber *resultatde_l_analyse_de_larafale;
    resultatde_l_analyse_de_larafale = [[NSNumber alloc]init];
    NSMutableString *caractere_x;
    caractere_x = [[NSMutableString alloc]init];
    NSMutableString *operateur;
    operateur = [[NSMutableString alloc]init];
    nombrede_caractere_dans_element_de_laformule = [elementd_uneformule length];
    ia = 0;
    for (n=1; n <= nombrede_caractere_dans_element_de_laformule; n = n+1)
    ia++;
    char y = [elementd_uneformule characterAtIndex:ia]; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< here
    NSString *x = [[NSString alloc] initWithUTF8String: y]; //[NSString stringWithFormat:@"%@", y]; <<<<<<<<<<<<< and here
    [caractere_x setString:@""];
    [caractere_x appendString:x];
    return resultatde_l_analyse_de_larafale;
    @end
    P.S.
    Excuse my bad english i am french speaking

    I also couldn't figure out what your code is doing, but hope this sample code will help:
    NSString *firstString = @"Canada";
    NSMutableString *secondString = [NSMutableString stringWithCapacity:10];
    int index = random() % [firstString length];
    // get a substring of length 1 at the index position of firstString
    NSString *oneCharString = [firstString substringWithRange:NSMakeRange(index, 1)];
    // append the single-character substring to secondString:
    [secondString appendString:oneCharString];
    NSLog(@"firstString=%@ index=%d secondString=%@", firstString, index, secondString);
    I was testing the above when your first reply was posted. It uses the same method Et suggested, but I didn't want to just throw it away.

  • Getting one character at a certain position from a string array

    Hi, i'm new at learning java, but have strong experience at C++ and asm. How would i get one character at a certain positon from a string array.
    for example:
    String Phrases[] = {"To be or not to be, that is the question","The Simpsons","The Mole","Terminator three rise of the machines","The matrix"};
    that is my string array above.
    lets say i wanted to get the first character from the first element of the array which is "T", how would i get this

    ok well that didn't work, but i found getChars function can do what i want. One problem, how do i check the contents of char array defined as char Inchar[];

  • Getting immediate character behind to the cursor in JTextPane?

    when i use left arrow, i am not getting the immediate character behind to the cursor, but i am getting the character after 2 position in JTextPane. It works fine for the right arrow. since we get the character based on the caretposition. how can i get immediate character behind to the cursor when i use other arrow's other than right arrow?
    thnx in advance

    Swing related questions should be posted in the Swing fourm.
    The simple answer would be to use getCaretPosition -1. But this is probably not what you are looking for and you question is not very detailed.
    So, posting a simple 10 line executable demo program would be nice. Its probably a problem with the order of events.

  • Getting special character while saving adobe form from portal

    Hi All,
    I am getting Special character while saving adobe form. I am using webdynpro java application, in which I am using download file UI element.We are facing this issue after support packs were implemented in staging system.
    Kindly advise.
    Regards
    Shashwat

    Hi,
    We have ABAP system as backend system seperately and Single sign on is configured.
    when we access the portal with domain name line http://hostname.domain/52000/irj/portal, we are able to access the adobe form which is develope on abap system without any issue.
    but our issue started when we are trying to access portal only with hostname as http://hostname:52000/irj/portal
    we are able to login to portal but when we are trying to open the adobe form we are getting error
    No switch to HTTPS occurred, so it is not secure to send a password
    Since you have configured SSL, I assume that this configuration is done with fully qualified hotsname. Hence the certificate is generated based on this hostname.
    Now when you access your portal without typing fully qualified hostname, system is unable to locate a relevant certificate. Hence it lands up with a message "No switch to HTTPS occurred, so it is not secure to send a password"
    Hope this answers your query
    Regards,
    Deepak Kori

  • Euro Character

    I'm trying to print the euro character in a jsp. The code below prints a question mark though. I figured since I was setting the locale to iso-8859-1 that it should display correctly but it doesn't. Can someone point out where I'm going wrong here? Thanks in advance.
    <%
         Locale locale = new Locale("ISO-8859-1");
         response.setLocale(locale);
         PrintWriter responseWriter = response.getWriter();
         int euroInt = 8364;
         char euro = (char) euroInt;
         responseWriter.print(euro);
    %>

    Does your browser supports this charset? the answer is no, so your browser didn't recognize the character.

  • Select all no longer working getting the character å

    Good day guys.
    I think I may have hit a key combo that changed somethign on my comptuter.
    I am getting funny character when using the command key
    Example
    Select all shoulod be command + A  what i get is å
    Copy command +v i get ç
    Past command + v i get √
    and so on you get the idea.
    I have tried rebooting a few times it did not clear it up.
    Any one know why keycombo i might of hit...
    thanks

    Hmmm... Option+a, c or v should produce those characters... å, ç or √...
    Either try System Preferences / Keyboard / Keyboard Shortcuts / Restore Defaults...
    Or Keyboard / Modifier Keys... / Assign the Command Key to the Command drop-down...

  • How to get a character from input stream withjout pressing RETURN key?

    In C, we could use getch() form <conio.h> to get a character from the input steam without pressing the return/enter key. How could I tranlate this function for use in Java?

    public static char readChar()
    int charAsInt = -1; //To keep the compiler happy
    try
    charAsInt = System.in.read();
    catch(IOException e)
    System.out.println(e.getMessage());
    System.out.println("Fatal error. Ending Program.");
    System.exit(0);
    return (char)charAsInt;
    }

  • I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off

    I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off.

    Back up all data before proceeding.
    Please triple-click anywhere in the line below on this page to select it:
    defaults write -g ApplePressAndHoldEnabled NO
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. You can then quit Terminal. Log out or restart the computer.

Maybe you are looking for