CurrencySymbol and hex code

This code does not work properly:
<h:outputText value="#{infoBean.number}">
       <f:convertNumber type="currency" currencySymbol="0x00A3"/>
</h:outputText>What should I set to currencySymbol attribute in order to see currency symbol of Cyprus pounds?
Unicode:         Unicode:
Decimal            Hex
163                 00A3

Why this code forks fine and I can see currency symbol:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<jsp:text><![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
]]></jsp:text>
<html>
     <body>
          <f:view>
               <h:outputText value="#{infoBean.number}">
                    <f:convertNumber type="currency" currencySymbol="& # x 0 0 A 3;" />
               </h:outputText>
          </f:view>
     </body>
</html> 
</jsp:root>------------------------------------------------------------------------------------------
But this code does not work well and I see only text "& # x 0 0 A 3 ;" but not currency symbol:
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<html>
     <body>
          <h:outputText value="#{infoBean.number}">
               <f:convertNumber type="currency" locale="en-GB" currencySymbol="& # x 0 0 A 3 ;" />
          </h:outputText>
     </body>
</html> 
</f:view>

Similar Messages

  • Problems with sockets and hex code

    When i try to send 0x9d on socket, it send 0x3f. Why?
    conexion = new Socket("server", 0000);
    escritura = new PrintWriter( conexion.getOutputStream(),true);
    escritura.write(0x9d);
    escritura.print("\u009d");
    It always send 0x3f.

    jotremar wrote:
    When i try to send 0x9d on socket, it send 0x3f. Why?
    conexion = new Socket("server", 0000);
    escritura = new PrintWriter( conexion.getOutputStream(),true);
    escritura.write(0x9d);
    escritura.print("\u009d");
    It always send 0x3f.My guess is 0x3f is a question mark, and since you're using PrintWriter which is geared for printing "strings" and the character 0x9d is not in the selected (default, since you didn't specify one) character encoding, it turns it into a question mark.
    Solution: Don't use PrintWriter for sending binary data.

  • XSL-FO square bullet HEX Code

    I am working on XSL-FO and HEX code "&#x25aa;" for small black square is not working correctly. It is being replaced by "#" in my PDF output. Is there a place in the ckeditor files where we need to add this HEX code to work? Or if someone knows other HEX codes for square bullet that work in XSL_FO.
    Thanks in Advance!!

    Anybody have any ideas?

  • Retrieve the character from hex code

    I want to write the hex code / ASCII code of the English alphabets ( A - Z and a - z ) in a file and again want to read those codes (either ASCII or Hex code) from the file to retrieve the characters from them. How it is possible?
    For example, ASCII code of 'A' is 65 and hex code is 41.
    ASCII code of 'z' is 122 and hex code is 7A.
    Avijit

    Forgot that you need to convert them back:
            Character c = new Character('A');
            System.out.println("char : "+c);
            int ascii = (int) c.charValue();
            System.out.println("ascii: "+ascii+" => "+(char) ascii);
            String hex = Integer.toHexString(ascii);
            System.out.println("hex  : "+hex +" => "+(char) Integer.parseInt(hex, 16));

  • Is there a chart/table showing colors and corresponding Hex codes?

    Hello all,
    I'm studying how to change the color properties on panel components programmatically, and I can find the property, but is there a chart or graph somewhere that shows for LabView the color and the corresponding hex code for it? I'm wanting to be able to look for a color I want, and find the hex code for it rather than just trying random number combinations.
    I'm guessing there is something out there like this, but I've not been able to find it yet....
    Thank you in advance,
    cayenne

    On your block diagram go to Graphics & Sound >> Picture Functions and select the Color Box Constant. When you click on the box it will bring up a color selector. You can use this to pick the colors that you want. If you really need the numbers, connect the Color Box Constant to a U32 indicator. It will tell you the number for the color that you picked (select the indicator's Display Format to be Hexadecimal and you can see the hex digits for the color you have selected).
    On the front panel you can select Numeric >> Framed Color Box to have the same box as a control.
    Rob

  • Hex code and java

    Hi to everyone!
    I must write a java application that converts files from html to xml using jtidy package(particularly,using the parse method).But after this conversion the hex code 0D0A appears in the xml files;
    so,for example,the sentence(in the html file):
    Login or Password is incorrect
    becomes(in the xml file):
    Login or Password is
    incorrect
    How can I do to have the whole sentence on the same line,even in the xml file?I need to have this change in the string because I've to do xpath queries on it,and java doesn't recognize hex code.Could I apply any jtidy setting?If yes,which one??Otherwise..how could I solve my problem?
    Please,help me!!!

    Yes, but your question isn't clear to me. Where are these 5 values coming from? Do you have an array with 5 values? To convert an int to a hex String, use Integer.toHexString(yourInt);

  • RS232 HEX CODE FOR SONY AND LG DISPLAY

    Hello,
    I looking for the rs232 hex code to remote change the input of a Sony DIsplay from TV to HDMI and for tunring the screen on and off.
    I stumbled on a site
    http://files.remotecentral.com/library/3-1/sony/lcd_%282010%29_television/power_control/index.html
    Can anyone help with the conversion method.
    Thanks in advance

    Dear
    i did not get your question , but if you have DMP which have HDMI port and your TV support HDMI , you will only need for HDMI cable , it is so different from RS232. Kindly find the photo of HDMI.
    Thank you
    please rate

  • Create and Send an array of hex code to a device through serial port

    My name is Tina Drew,
    I am working programming a project involving an RFID system. In order to get the project to work the way that I desire, it must send a hex code of 01 to start the device and 6A to run in continuous mode. I have part of the program by the device does not appear to be responding to the hex signal. Maybe my programming is incorrect. In addition, it will not read the information from the microreader through the serial port. It says that the time has expired before the operation can be carried out. What should I do? A sample of the program is attached.
    Please contact me as soon as possible at 410-651-7604 or [email protected]

    You forgot to attach your program. It happens to the best of us. I sure wish NI would move the darn attachment button next to or before the submit button.
    Things to check:
    Baud Rate
    Number of stop bits
    Parity bit
    DCE device talking to DTE or vice versa. If both devices are DCE or both DTE, you must use a null modem cable.
    You can use Hyperterminal to see if you can communicate with your device manually (On the hyperterminal screen, hold down the Alt key and type 001 from the numeric keypad, not the numbers from the top row above the letters, a smiley face will appear if the device echos back the character. If it don't, you can setup hyperterminal to display the character - look under file-properties-settings-ASCII Sending-Echo typed characters locally). If you receive a good response, this will tell you if you have the correct baud rate, etc... After proving that this works, make sure your vi's serial port configuration match your hyperterminal settings. You can use a breakout box to determine if you have a good DCE-DTE match. DCE will assert the RS232 signals DSR, CTS, and CD. DTE will assert DTR and RTS. By hooking up a breakout box on one end of the com link, you can see which LEDs are on and this tells you whether you have a DCE or DTE. Most computers are DCE. Modems are DTE. Your device would have to look like a modem to the computer as far as RS232 signals go.
    - tbob
    Inventor of the WORM Global

  • Gif images, pixels and hex colors

    I'm not a java developer, though I at least have attempted to learn it. This may be a strange place to ask this question but java keeps coming up in my search so what the heck!
    I am a highschool biology teacher-to-be and I am trying to design a lesson about DNA transcription and translation. I want the students to play a game where they take hex color codes (codons) and place a color card (amino acid) the hex code represents so that they build a big pixelated picture (the protein). I don't want to do the work of writing down the hex code for each and every pixel of the image, and was hoping there was some way to reveal as a list the hex color of each pixel in some sort of ordered fashion. I tried just dragging a gif file into a text program, but that didn't do it, ha!
    Any ideas?
    Thanks

    mport javax.imageio.*;
    import java.io.*;
    import java.awt.image.*;
    public class Test {
        public static void main(String[] args) throws Throwable{
         BufferedImage bi = ImageIO.read( new File( args[0] ) );
         for( int x = 0; x< bi.getWidth(); x++ ) {
             for( int y = 0; y< bi.getHeight(); y++ ) {
              System.out.print( Integer.toHexString( bi.getRGB( x, y ) ) + "," );
             System.out.println( "" );
    }Compile:
    javac Test.java
    run:
    java Test theNameOfImage.gif
    ??

  • An issue with DigitalColor Meter and HTML codes

    First off, I apologize if this is in the wrong area; it seemed to be the one most closely related i could find.
    I've been using the Mac's DigitalColor Meter program for ages now to grab color codes for my web design work. Until recently, it was fine; find the color you need, shift-command copy it, then paste it into the HTML source code as appropriate. Simple as pie.
    Roughly a month or two ago, however, I realized I was having issue with it. I could still copy-and-paste the hex code as normal, but suddenly it wasn't showing up correctly when viewed in soem browser, but fine in others. After a lot of hair-wringing and experimentation, I discovered that (presumably) something had changed with the way DCM copied/pasted its hex code.
    When I paste the code, it is inserting invisible characters after each pair of letters. It took me forever just to figure this out, as they were, well, invisible. I couldn't see them in my text editor, but when I used the arrow keys to move along the hex code as pasted, it would pause appropriately each time I got to those points. A friend of mine looked at the code in his (PC-based) text editor, and clearly saw the extra characters, altho it doesn't show up in any of my mac-based ones.
    What he saw: "#ab cd ef "
    What I see: "#abcdef"
    This is, as best I can tell, a recent development, and I'm not sure what prompted the change? Since different browser are interpreting the 'invisible' characters differently, it's causing me to have to manually type in the hex code after finding it in DCM to ensure no extra characters sneak in. Not a big deal, but annoying nonetheless.
    Any ideas out there as to why this has started happening? Any way to correct it? DCM was a staple of my web-working tools, and it's disheartening to have to handle things in the current way.

    Unfortunately it seems that this issue is a "feature not a bug". In tiger it used to work fine: you could paste into photoshop or a css file and it would work. It got changed in Leopard because Apple engineering decided that it was better coding practice to treat each hex value as "word" thus delineating it with these infuriating invisible characters. If you copy and paste into BBEdit on leopard and tiger machines you will see the difference.
    There might be a way to make an automator action that can strip these characters out when pasting. Another option includes using the less graceful (though you can manipulate the colours further after selecting) built-in color chooser and the HexColorPicker extension to it (google for download). You can write a script and save as an application to run the apple colour chooser as a stand alone.
    Open script editor and type: choose color
    Save as app, add nice icon and that's it.
    Xscope looks a bit overboard for my taste, plus its mo' money! Better invested into Pathfinder or something.

  • Firefox displaying little boxes of hex code instead of letters

    all of a sudden firefox started displaying little boxes of numbers and letters which i suppose are hex code instead of letters for all web pages visited.

    Missing icons are usually supplied by a font that is downloaded from the server (@font-face) as you can probably see by little boxes that show the hex code of the characters.
    Make sure that you allow pages to choose their own fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    You can check the <b>gfx.downloadable_fonts.enabled</b> pref on the <b>about:config</b> page and make sure that it is set to true (if necessary double-click the line to toggle its value).

  • DigitalColor Meter not displaying HEX code

    In Snow Leopard I was using DigitalColor Meter 3.7.2 which had support for RGB as a Hex Value, 8-bit hex colour as  (See Image)
    I recently purchased a iMac and although I thought i was going to have Snow Leopard installed it came with Lion. So I though I would try it out for myself.
    I when to open my DigitalColor Meter 4.0 on Lion and I am not even given the option. (See Image)
    As a web developer I have used this tool every day for years! I was able to cut and paste the hex code to any colour I saw on my screen not matter where it was or what program I was using. The changes made to this tool have basically made it useless to me. 
    I really don't know why you would take away functionality on a operating system that is used by so many creative people and in a field that is just growing more in popularity.
    I really hope I can find a way to get this back or it is just hidden with some terminal command.

    You could try using the SL version in Lion. I've not tried that. BTW, if you want to report this issue to Apple's engineering, send a bug report or an enhancement request via its Bug Reporter system. To do this, register as an Apple Developer—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report or enhancement request. You'll get a response and a follow-up number; thus, starting a dialog with engineering.

  • Conversion - ASCII (Alphabet) to Hexa  and Hexa to ASCII (Alphabet)

    Hi Guys,
    Can you please give me the code to change ALPHABET  to HEXA  and HEXA to ALPHABET in UNICODE system.
    1. I want to convert alphabet 'A' to Hexa.
    2. Convert Hexa to back in Alphabet (ASCI).
    Thanks,
    mini

    No Response.

  • Send Hex code via serial

    I want to send the code 0x01 (Hex) on RS232 and read back 2048*2 Bytes..
    Anybody has an idea for make the program to send Hex code.
    Thank you very much for anybody help.

    The serial port doesn't know about U16 or U32, just bytes. So your application will need to convert the bytes to U16. There is an easy way to do this in LabVIEW using the Join Numbers vi. It takes two bytes and spits out a U16 (or two U16's and spits out a U32). Very handy.

  • My hex codes aren't sticking! Help!

    I need help!
    I want to put a particular hex code in an object. When I paste the hex code in the color picker of my object it changes to the color I want. After I choose another object and then go back to the particular object with my hex code its a different hex code but the colors look similar.

    The hex code is 3daf2c 
    it is a green color

Maybe you are looking for