Euro symbol in JSP

<p>Hi all,</p><p>I have a strange behaviour in a report displaying Euro symbol: a &#39;?&#39; take the place of Euro symbol. Instead, exporting the report in PDF or RTF format, the symbol is displayed correctly in the documents generated. The JSP displaying the report doesn&#39;t use the tag library, but instantiates CrystalReportViewer class and performs the following operations:</p><p><%<br />    //(Gets the report source)<br />    ......<br />                <br />    CrystalReportViewer viewer = new CrystalReportViewer();<br />    viewer.setReportSource(reportSource);    <br />    viewer.setEnableLogonPrompt(false);      <br />    <br />    viewer.setDisplayGroupTree(false);<br />    viewer.setHasToggleGroupTreeButton(false);<br />    viewer.setHasLogo(false);<br />    viewer.setEnableDrillDown(false);<br />    <br />    viewer.setOwnPage(true);<br />    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);<br />%><br /><br />If the report is displayed by means of a JSP using the tag library, Euro symbol is displayed correctly either in the JSP or in the documents generated exporting the report; here the source:<br /><br /><%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %><br /><crviewer:viewer reportSourceType="reportingComponent" <br />                 displayToolbarCrystalLogo="false" <br />                 displayToolbarToggleTreeButton="false"  <br />                 displayGroupTree="false" <br />                 viewerName="firstReport-viewer" <br />                 reportSourceVar="firstReport" <br />                 isOwnPage="true"><br /><crviewer:report reportName="reports/firstReport.rpt" /><br /></crviewer:viewer><br /><br />What&#39;s wrong in the first JSP? Have I set other parameters?<br /><br />Thanks in advance,<br />pippo</p><p> </p>

<p>Hi all,</p><p>I&#39;ve found the solution, setting the page content type:</p><p> <%@ page contentType="text/html; charset=utf-8" %></p><p>With this piece of code the JSP displayes the Euro simbol correctly.</p><p> </p><p> </p>

Similar Messages

  • Euro symbol and Internet Explorer

    Hi,
    I'm trying to display in a HTML page a Euro value using an Italian Locale. The output is always a question mark followed by the correct Euro value (i.e. ? 513,45).
    My client browser is IExplorer 5.5 sp2. JSP server is TOMCAT latest release. Web services are under IIS (NT 4.0)
    I'm using the following code in a JSP page.
    <%
    java.util.Locale ELocale=new Locale("it", "IT", "EURO");
    double Euro=1936.27;
    out.println(NumberFormat.getCurrencyInstance(ELocale).format(24900/Euro));
    %>
    Somebody can help me ?

    HI Mario,
    definately your encoding. Just about every European encoding nowadays has two versions - the old one, and the new updated one that carries one extra character - the Euro symbol.
    Unfortunately, I can't tell you off the top of my head what the name of the right encoding to use would be, but the JDK documentation points to a list of all defined encodings, which should contain the one you're after.
    Hope that helps!
    Martin Hughes

  • Problem Inserting Euro Symbol and few others

    We are using java application with oracle 8.1.6 as the db with the charset as WE8ISO8859P15. ALl the forms are using multipart request. We cannot do away without that. When trying to insert euro symbol and few other western european characters, they get converted to something else before getting stored in the db and so we are not able to display them properly on retrieval.
    Can anyone please help in this direction?

    Just set the nls_charset.zip in classpath and then try to insert into db.I think it might not be a problem with database.(note. if u insert euro character it will be reside in db, as some format but u retrive it and stream it thru servlet it will be displayed in the browser properly, if u write using printwriter then it might give "?" / "O" in browser. refer http://www.inter-locale.com/faq/blacksquares.jsp).

  • Struts and euro symbol

    Hi there,
    I am facing the following problem.
    I am working in a project with Struts.
    If I write in any of the text input within a jsp the euro symbol, I get one of the others input text (hidden) as null in the Action (it is the first text input).
    If I include
    <%@page language="java" pageEncoding="utf8" contentType="text/html; charset=UTF8"%>
    at the top of the jsp file and
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    in the html head every thing is ok but I get a strange symbol "�&#130;�" instead "�".
    Anyhelp would be appreciate.
    Regards,
    Sergio

    Thank you, but it does not work.
    I have tried with ISO-8859-15 instead of UTF-8. Now, I am getting an ?.

  • Euro symbol is driving me crazy!!

    My architecture is:
    - Oracle 8i 8.1.7 DBMS under Linux on server "db"
    - Oracle 9i application server under Linux on server "web"
    I've got a jsp page which calls a java class to query the db, get the result as xml string and transform it into HTML by XSL.
    The problem is that I can't display the Euro symbol: I see an "upside-down" question mark.
    I think the problem is not the DBMS, because from my Windows client I can insert the Euro Symbol (I use sqlplus worksheet) and I see it correctly. But anyway the problem is only when I get data from the DB: if I insert the Euro Symbol into the XSL, it is displayed correctly.
    Please help me, I'm going mad...

    No. downgrading is not supported.
    If you want to troubleshoot your problems, please tell us what's happening and what you've done.  If all you want to do is rant, go somewhere else.

  • 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

  • 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 do I get Special character Euro symbol € to display ?

    Hi,
    How do I get the euro symbol € to display in Flash from
    PHP file created in DW ?. It does not display it properly. I have
    simplified the PHP code I have is:
    <?php
    $msgtoflash = "This is the Euro Symbol &#8364";
    print ("&Databaseinfo=$msgtoflash");
    ?>
    The &#8364 is a special character code for HTML.
    If I use the $ or £ symbols it works perfectly but not
    € ?
    Thanks,
    Paul

    maith wrote:
    > Im using Actionscript2. I had placed a query in Flash in
    "General
    > Discussions", before I came on the Dreamweaver Forum,
    but got no reply.
    The way to get the euro symbol to display in Flash is to use
    XML. I have
    tested this, and it works:
    euro.php
    <?php
    header('Content-type: text/xml');
    echo '<root>
    <elem>This is the euro symbol:
    &#8364;</elem>
    </root>';
    ?>
    ActionScript 2.0 to display the value of <elem> in a
    dynamic text field
    called myText:
    var myXML:XML = new XML();
    myXML.ignoreWhite = true;
    myXML.onLoad = handleLoad;
    myXML.load('
    http://localhost/test/euro.php');
    function handleLoad(success) {
    if (success) {
    var theRoot:XMLNode = this.firstChild;
    myText.text = theRoot.firstChild.firstChild.nodeValue;
    } else {
    myText.text = 'Not working :(';
    Handling XML in ActionScript 2.0 is like poking needles in
    your eyes,
    but it's the only way I have been able to get the euro symbol
    from an
    external source into a Flash movie.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • What is use of % symbol in JSP

    What is use of % symbol in JSP? Please reply

    What is use of % symbol in JSP? Please replySome people on this thread have provided you good
    answers.
    You may also want to know that the new way ofwriting
    JSPs is with JSTL and scriptlets <% anything that
    goes here is a scriptlet %> are discouraged.
    But it's good to get basic foundation inscriptlets
    too incase there's legacy JSP code.why would you need a foundation in scriptlets,
    though? if it's legacy code, it's already there, and
    it's just java. if you can't work out that the stuff
    that looks like java code in a legacy JSP actually
    is java code, you're in trouble. and wouldn't
    part of the maintenance be to refactor the scriptlets
    out?It's not really just Java IMO because JSP has additional concepts like
    implicit objects such as page, request, session, out etc ---- a newbie who knows Java won't have a clue when the come across the implicit objects and can't find where they were declared.
    Also the concept of directives is not in Java Classes but on in JSPs.
    JSP has some features that would be new or confusing to someone who has only worked with Java, therefore a newbie to JSP would be better off learning JSP concepts.
    -regards
    appy

  • How do you display a Euro symbol in Pages 5.2, Mavericks?

    I haven't found the Euro symbol in the special characters.  Perhaps I need to choose a different font or perhaps I just missed it.
    Where do I find it.
    thanks

    In the special characters palette, you simply type euro in the search panel, and then select it. Click Add to Favorites.
    Keyboard Euro
    U.S. - shift+option together, then 2.
    British - option+2
    French - option + $
    German - option + e

  • Euro symbol not displayed in pdf

    Hi,
    I am not getting euro symbol in pdf. Instead of that, I am getting '?'.
    When i query the database I am getting euro symbol. the data type is VARCHAR2.
    Thanks in advance.

    is there any solution to this issue??

  • Trouble with euro symbol ( x80 )

    Hi!
    on windows-plattforms the euro-symbol often is encoded with x80. I can manage to read from those files/streams, but as soon as I try to write this value to into a stream with whatever encoding java "thinks" that x80 is not a printable character and writes a x3f (a questionmark) instead.
    I know that the euro-symbol should be unicode x20AC, but if windows and the IE uses x80 my java-program has to be able to deal with that!
    please help

    Maybe it has to be done the other way around.
    You need an encoding that reads windows' Euro x80 into Unicode x20AC and you should not stick to have the Euro sign as x80 at the Java side.

  • Oracle 9i - problem with euro symbol

    HI,
    I have a database on oracle 9i and i can't store the euro symbol ( it is stored like a '?' reverse).On the server I have NLS_CHARACTERSET=WE8MSWIN1252 and for
    NLS_NCHAR_CHARACTERSET=AL16UTF16.
    Which superset is needed for this parameter to display the euro symbol and if I can do the change if the my NLS_CHARACTERSET is not a superset for NLS_NCHAR_CHARACTERSET ?
    Thanks.

    HI,
    I have a database on oracle 9i and i can't store the euro symbol ( it is stored like a '?' reverse).On the server I have NLS_CHARACTERSET=WE8MSWIN1252 and for
    NLS_NCHAR_CHARACTERSET=AL16UTF16.
    Which superset is needed for this parameter to display the euro symbol and if I can do the change if the my NLS_CHARACTERSET is not a superset for NLS_NCHAR_CHARACTERSET ?
    Thanks.

  • I want to delete the euro symbol and restore thr dollar symbol.  Ihave English and qwerty selected in settings

    I have somehow changed the dollar symbol to a euro symbol.  I have english and qwerty selected insettings

    Settings>General>Keyboard>International>English>U.S. is it set like that?
    If you tap the 123 key and then tap the #+= key you can toggle between the $ and the euro sign on the U.S. English keyboard.

  • How can I get rid of Euro symbol in text?

    Euro symbol show up in front of Copyright symbol when I test it in Internet Explorer but doesn't when I check it in another browser.
    How can I get rid of it?
    Thank you.

    Does it show up in the code?
    If not it's probably a charset in the page encoding that's being misinterpreted by the browser, or a "web-unfriendly" font...
    I try to stick to UTF-8 and avoid any font that isn't in the default list in DW.
    If you have a link to the page online it would help a lot more though. Without that everything I just posted is a guess.

Maybe you are looking for

  • How can I mirror from my macbook pro

    Hi all, I have a macbook pro and would like to mirror my tv right to my apple tv but don't know how?

  • Migrating User Settings from one local user to another

    I have an iMac running 10.5.4 with some issues (Parallels hanging at random moments). One of the tests I did to troubleshoot it was create a new user profile, and run the same (shared) Parallels machine as that new user, which seemed to fix the probl

  • Recommendation for ESR and SR configurations

    Hi, I need some recommendation on configuration of the ESR and Service Registry in a landscape. Now that ESR and SR can reside either on CE or PI and since both PI7.1 and CE7.1 are capable of having ESR and SR configured. What is recomemded approach?

  • Songs won't appear on the nano?!

    ***?! i plugged in my iPod nano to my home computer, downloaded my library, then i went to toronto, and to charge it, i loaded itunes onto another computer, then plugged in the ipod... and now my nano shows that i hav no songs at all! The second comp

  • Iphone 5s receiver /earpiece not working

    My iPhone 5s' earpiece receiver is not working. :( i even tried troubleshooting provided by other threads but still no luck. :( Does any of you having the same issue?