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

Similar Messages

  • 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

  • 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.

  • Not able to send euro character ' €' via socket

    OS : Solaris - The solaris login profile is set with LC_CTYPE, LC_CTYPE, LC_LANG=ISO-8859-15 and we are able to see this when we run the set command and also locale in solaris.
    JRE : 1.6
    Application deployed in Weblogic 10.3
    I m trying to send a euro character in java via socket, but in the receiving end not able to receive properly. Even I have to tried to set the Charset ( in the java code )
    as ISO-8859-15 , but still it didn't work properly. Code snippet for the sample program to display euro symbol
    import java.io.UnsupportedEncodingException;
    import java.nio.charset.Charset;
    public class Euro {
    public static String createString( byte[] bytes, String enc )
    String CResult = null;
    try {
    CResult = new String( bytes, enc );
    } catch (UnsupportedEncodingException e) {
    e.printStackTrace();
    return CResult;
    // ISO8859-15 is same as ISO8859-1 but with EUR character
    public static String createStringISO8859_15( byte[] bytes )
    String CResultISO = null;
    CResultISO = new String( bytes, Charset.forName("ISO-8859-15" ));
    return CResultISO;
    public static void main(String[] args) throws Exception {
    //String enc = "€";
    byte[] iso8859_15 = { (byte) 0xA4 }; // euro sign
    //byte[] iso8859_15 = "0xA4".getBytes(); // euro sign
    /*     String Cresult = Euro.createString (iso8859_15, enc);
    System.out.println("createString Result : " + Cresult);*/
    String CresultISO = Euro.createStringISO8859_15(iso8859_15);
    System.out.println("createStringISO8859_15 Result : " + CresultISO);
    When I 'm running the above code in windows it is working fine whereas in Solaris it is not working. The console just displays ?, rather than the actual '€' symbol. Is this a display problem in console of vt100 or porgramming? Kindly suggest. How to make this work in Solaris.

    Please repost or edit that mess with {noformat}{noformat} tags and proper indenting so it can actually be read.
    And then explain what sockets have to do with the price of fish.                                                                                                                                                                                                                                                                                                                                                                                   

  • Issues with using the output redirection character with newer NXOS versions?

    Has anyone seen any issues with using the output redirection character with newer NXOS versions?
    Am receiving "Error 0x40870004 while copying."
    Simply copying a file from bootflash to tftp is ok.
    This occurs for both 3CDaemon and Tftpd32 softwares.
    Have tried it on multiple switches - same issue.
    Any known bugs?
    thanks!
    The following is an example of bad (NXOS4.1.1b) and good (SANOS3.2.1a)
    MDS2# sho ver | inc system
      system:    version 4.1(1b)
      system image file is:    bootflash:///m9200-s2ek9-mz.4.1.1b.bin
      system compile time:     10/7/2008 13:00:00 [10/11/2008 09:52:55]
    MDS2# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    TFTP put operation failed:Access violation
    Error 0x40870004 while copying tftp://10.73.54.194/
    MDS2# copy bootflash:cpu_logfile tftp://10.73.54.194
    Trying to connect to tftp server......
    Connection to server Established. Copying Started.....
    |
    TFTP put operation was successful
    MDS2#
    ck-ci9216-001# sho ver | inc system
      system:    version 3.2(1a)
      system image file is:    bootflash:/m9200-ek9-mz.3.2.1a.bin
      system compile time:     9/25/2007 18:00:00 [10/06/2007 06:46:51]
    ck-ci9216-001# sh int br > tftp://10.73.54.194
    Trying to connect to tftp server......
    |
    TFTP put operation was successful

    Please check with new version of TFTPD 32 server. The error may be due to older version of TFPT server, the new version available solved this error. Files are getting uploaded with no issues.
    1. Download tftpd32b.zip from:
    http://tftpd32.jounin.net/tftpd32_download.html
    2. Copy the tftpd32b.zip file into an empty directory and extract it.
    3. Copy the file you want to transver into the directory containing tftpd32.exe.
    4. Run tftpd32.exe from that directory. The "Base Directory" field should show the path to the directory containing the file you want to transfer.
    At this point, the tftpserver is ready to begin serving files. As devices request files, the main tftpd32 window will log the requests.
    Best Regards...

  • How to replace the '&' character with '&' in xi

    Hi,
    i need to replace the '&' character with ' &'.but i f i am converting it is displaying as '&' because internally '&' = '&'.
    beacuse of this it is not converting.
    is there any possiblity to change the  standard conversion in xi.

    Graphical mapping does not support special character like & , <,> to be mapped.
    You can encode & as and in UTF-8 only.
    if you want the special character to be used, Opt XSLT mapping with ISO-8859-1 encoding
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="ISO-8859-1"/>
    <xsl:template match="/">
    <xsl:copy-of select="*" />
    </xsl:template>
    </xsl:stylesheet>
    How to Work with Character Encodings in Process Integration (NW7.0)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • How to compare character with \ ?

    Hi,
    How can I compare a character with backslash ?
    when I do 
    if  (c == '\')
    then it gives error invalid character constant
    I cant even declare string with this value like
    String str = "\";
    this gives error string literal is not properly closed by double qoute
    thanks in advance
    B

    Hi,
    You can use the below
    String str = "\\";
    char c = '\\';
    * are considered as \ at runtime.
    Regards,
    Sruti

  • Inserting a special character with GREP styles

    Hi.
    I wanna define a GREP style that makes this: if I write Bluetooth I wanna that a registered trademark is added at the end of the word but with superscript format. Is it possible?
    Thanks in advance.

    No, GREP styles only apply formatting, they cannot insert characters. Use a regular find & change to do so.
    (There is a thinking-outside-of-the-box solution. If you have access to a font creating utility, you can create a character 'h' with TM attached to it. Then you can use a GREP style to automatically apply this custom font to just the 'h' of 'Bluetooth'. See http://indesignsecrets.com/insert-a-special-character-with-grep-styles.php.)

  • 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.

  • Insert character with umlaut/accent

    How do you insert a character with an accent or umlaut into Appleworks 6? This may seem like a basic question, but I can't find it in any of the drop-down menus or the 'help' section. I particularly need German characters, such as 'ö' and 'ß' (both of which I copy/pasted there, but don't want to have to do that every time!). I am used to using OpenOffice or Microsoft Word.

    Welcome to Apple Discussions!
    Inserting umlaut/accented characters is fairly straightforward; it requires an [Opt]+[key] (=press [Opt] and hit [key] while holding [Opt]), which then either produces a character of its own or modifies the immediately following key.
    Some examples of such non-english characters:
    - [Opt]+[s] = ß, [Opt]+[d]=ð, [Shift][Opt][k] = , etc.
    Some examples of accenting:
    - [Opt]+[`] followed by [key] tries to put a down-stroke accent on [key]
    Ex.: [Opt]+[`][a] = à,
    - [Opt]+[n] [key] tries to put a tilde on the letter [key]
    Ex.: [Opt]-[n][o] = õ,
    - [Opt]+[e][key] triesd to put an up-stroke accent on [key]
    Ex.: [Opt]+[e][e] = é
    But, instead of me trying to give you a complete listing, see if you have a little "Stars-and-stripes" icon in the right portion of your menu bar. (If not, select "System Preferences..." from the "" menu item on the far left; in its window, click on the "International" icon, and then on the "Input Menu" tab; check the "Keyboard Viewer" if it isn't already checked; close the "System Preferences" window.)
    Select the "Show Keyboard Viewer" from the "Stars-and-Stripes" menu in the right portion of your menu bar, and you'll get a "live" guide to your keyboard. As you press modifier keys, the keys in the viewer change to their correspondingly modified (extended) function. So, pressing [Opt] highlights a couple of keys: these are extended modifier keys: [Opt] makes [e] into the highlighted [’] key, indicating that it attempts to put the [’]-like accent on the following letter.
    Only those combinations work that exist in the font you are using; For example [Opt]+[e][s] produces "´s" since there is no [’]-accented [s] in most fonts.
    This system has been with the Macintosh OS's since their inception---certainly as long as I remember it.
    If you have checked, "Hungarian" in the "International/Input Menu" system preference, and then selected that in the "Stars-and-Stripes" menu as your mode of entry, the flag changes into the Hungarian flag, and your keys will produce symbols according to the Hungarian layout, regardless of what the imprint on the actual keys says. The Keyboard Viewer, of course, tells you which key does what now. Since you ask about "ß" ([Opt]+[s]) and "ö" ([Opt]+[ u] [o]), which occur in German, you may want to switch to the German keyboard layout. Of course, some keys will no longer do what their imprint says, but the "Keyboard Viewer" can always remind you of their "German" function.
    Alas! The more recent, and far more capable method using UNICODE (accessible by checking the "U.S. Extended" = "Stars-and-Stripes" with a little "U" option in the "International/Input Menu" system preferences, and then selecting the "U.S. Extended" mode of input from the "Stars-and-Stripes" menu) is not supported by AppleWorks 6.2.9: it crashes if you type anything into any of the AppleWorks' modules. And, since Apple is now developing "iWork" and "iLife", AppleWorks will probably never accept UNICODE.
    Hope this helps, Tristan
    G4 PowerBook   Mac OS X (10.4.5)  

  • Animate a character with Flash environment + AS3

    Hi !
    This is a trouble I've been facing for YEARS, and no way for me to solve it. Save me my heros.
    I'm trying to animate a character with Flash whose face can be changed.
    So I have a Character MovieClip in which I have 4 frames. In each frame there is an animation of the little guy : one going down, one going left, right, and up.
    In each animation there is the MovieClip Head in which you can attach a hat, sunglasses, hair etc... Am I clear enough ?
    Here is the problem : since the head is going to be changed by the player, the MovieClip Head MUST have the same reference in each frame in each animation. Unfortunatly, Flash thinks the MovieClip Head is a new one on each animation of the little guy running. So for instance, if I attach sunglasses on the clip Head, then they will disappear as soon as the character will change his direction since Flash doesn't know the Head I'm using in the new animation isn't a new one.
    What am I doing wrong ?
    If I'm not clear enough, please tell me. I REALLY want to understand how to make such a thing on Flash.

    Hi, Kromah
    I've edited your files and updated here.
    From looking at your files, I decided that the easiest solution without totally restructuring what you had would be the third solution, watching the stage for heads to be added, then updating any head you happen to get. 
    To make this work, I ran the Set Instance Name on Multiple Frames extension to set all of the Head layers to "head." The reasoning behind this was that you didn't have a Class name assigned to your Head instance, so I fell back on checking to see if the instance name was "head." So the instance name needed to be assigned to be head.
    A few other things I noticed:
    Your Character symbol and your Character .as Class had the same name. This can confuse the compiler, but more importantly, this would prevent you from having any other Character symbols that used the same .as file. This is why I renamed the symbol and its Linkage name to CharacterMC.
    Your button instance names start with Upper Case letters. In ActionScript, the convention is for Class members to be named starting with a lower case letter. Even though you don't see the Class in an .as file since you're not using a main Document Class, it still exists (created silently in the background by the compiler) and you still should follow the convention if for no other reason than that you will probably want to move to a main Document Class at some point.
    When you use the underscore character to start a variable name, this denotes that it's internal storage for a variable that's accessible through a getter/setter pair. This is not how you've used it, but this is understandable. The standards for this have evolved over the years as AS3 has matured, and I only noticed this in the last version of the Adobe standards that was available. That seems to be a dead link now. That said, I followed what you are already doing, because it just creates confusion to do half your variables one way and half another.
    I personally prefer protected to private, because you really need to know what you're doing and understand how your code is likely to evolve to be able to set things to private yet provide enough hooks for you or other developers to be able to extend your code. IME the vast majority of developers simply don't have this level of clairvoyance. However, I followed what you were already doing.
    I think you should either instantiate everything and add it to the stage yourself or let the Flash player do it, not mix and match. There's more information available on the former technique than the latter, so you should probably go that way.
    Update: The Apache Flex standards (which is what the old Adobe standards became) can be found here.
    Message was edited by: Amy Blankenship

  • Problem with JDOM and euro character

    Hi,
    I have an xml file including euro characters (�) and starting with :
    <?xml version="1.0" encoding="ISO-8859-15"?>
    as it should probably be.
    However, my problem is that (JDOM and) SAXBuilder doesn't recognize the euro characters and replace them by an unknown character '?'.
    What's wrong and how can I solve it?
    Thanks in advance.

    All right, this is a a part of my code:
    ....SAXBuilder builder = new SAXBuilder( true );
    //create the document
    //this doc contains this tag <RefVersion> data�data </RefVersion>
    Document doc = builder.build( "E:\\test.xml" );
    System.out.print( "before charAt = " + "�".charAt(0) + String.valueOf('\u20ac') );
    String str = "euro�euro";
    System.out.println( "euro�euro ->" + str.replace('\u20ac','O') );
    Element root = doc.getRootElement();
    //recup du noeud RefVersion
    Element version = root.getChild( "RefVersion" );
    str = version.getText();
    System.out.println( "nom= " + version.getName() + " data= " + str );
    System.out.println( "index de � ds euro�euro " + str.replace('\u20ac','O') );
    and the output is:
    before charAt = ��
    euro�euro ->euroOeuro
    nom= RefVersion data= data?data
    index de � ds euro�euro data?data
    So, obviously, it comes from JDOM.

  • Error with EURO-character in pdf417 bar code with adobe forms

    Hi,
    we have a problem with the Euro-Sign (u20AC) in the bar code type pdf417. The encoding is set to  "ISO-8859-15", but after creating the barcode and scan this, instead of the u20AC-character the ?-character appears. Is this a bug in the encoding-routine? Or have we to set some special parameters?
    Can anybody help?
    Thanks!
    Andreas
    Edited by: Andreas Hempel on Nov 28, 2011 9:43 AM

    Hi,
    thanks for your reply, unfortunately the oss note doesn't solve the problem.
    We print the barcode on a A5 formular with a HP Laserjet printer series.
    Regards
    Andreas

  • Euro character in HTML with non-euro supported language

    I have a customer in Belgium who wants a servlet-generated webpage that displays the text in english, but the decimal notation as belgium and the currency as EURO. The problem is that en_BE_EURO does not work because it doesn't exist according to:
    http://java.sun.com/j2se/1.3/docs/guide/intl/locale.doc.html
    How do I get my servlet to generate english text, with decimals and commas like they use in Belgium and use the Euro symbol? I don't have the ability to hard-code what I need because this application is used world-wide and needs to support pretty much any combination possible.

    Nevermind. A code bug was not taking variants into account.

  • Euro(�) character in JSP -page

    I'have a JSP-page where is html-textbox for adding salary wish for the job and the problem is that I can't � character from request!
    I have to pages. In first one i have form where the text box is and a second one for saving the info to a bean.
    I have tried to use this tag in JSP pages :
    <%@ page contentType="text/html; charset=windows-1252" %>
    and after this code:
    String salaryWish = request.getParameter("salaryWish");
    System.out.println("Salary wish(�): " + salaryWish);
    String euro = "�";
    System.out.println("euro: " + euro);
    makes this kind of prints to Tomcat 3.2 window
    Salary wish(�): 1233 ?
    euro: �
    and if I print the same to textfile those � characters are actually � characters as they should be. But now the euro mark that I filled to salaryWish textbox and got from request is changed to ?.
    Does anyone know how to make those encodings work also in html-textboxes?

    Can't get working with that UTF-8 conversion! Causes compiler exception while loading JSP page.
    Instead I tried this and it seems to work
    String salaryWish = request.getParameter("salaryWish");
    try
    salaryWish = new String(salaryWish.getBytes("ISO-8859-1"),"windows-1252");
    catch (Exception e){ }
    Anyway,
    thanks robert!

Maybe you are looking for