Pound (£) sign prefixed with Â

Hi,
I've setup a form which processes/emails the data using PHP.
The form gathers data including price (in GBP). When the form
results come in by email, the £ sign is prefixed with a
Â. Is there a way I can change the php script to remove this
character?
The form calculates the price using javascript so the 'total'
field uses:
document.getElementById('total1').value="\u00A3"+total1.toFixed(2);
I've got this in the PHP doc: $total1 = $_POST['total1'];
I'm quite new to this so any help would be appreciated.
Thanks

drennan_uk wrote:
> I've setup a form which processes/emails the data using
PHP. The form gathers
> data including price (in GBP). When the form results
come in by email, the ?
> sign is prefixed with a ?. Is there a way I can change
the php script to remove
> this character?
The question mark is caused by mixing different encoding
(Latin-1 and
UTF-8).
> The form calculates the price using javascript so the
'total' field uses:
>
>
document.getElementById('total1').value="\u00A3"+total1.toFixed(2);
Change this to:
document.getElementById('total1').value=total1.toFixed(2);
> I've got this in the PHP doc: $total1 =
$_POST['total1'];
Change this to:
$total1 = '£' . $_POST['total1'];
I haven't tested it, but I think it should solve your
problem.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • How do I get a pound sign?

    Quite a basic question, but we are British ex-pats living in Oz and we bought our MBP here, so it doesn't have a pound sign on the keyboard. I've tried looking for a keyboard shortcut but I can't find one. Any ideas on how I get the pound (and Euro) signs?
    MacBook Pro, Mac Mini   Mac OS X (10.4.6)  

    Open the International preference pane and select the Input Menu tab. Check the Keyboard Viewer box in the scrolling window and the Show input menu in menu bar box. ( You can also check other boxes that may be useful for you.)
    This creates a menu with the icon of the keyboard set you are using and lets you switch quickly. The Keyboard viewer works like KeyCaps did in the classic systems, where you can hold down any modifier keys and see what different keystrokes will give you. The Character Palette (activated from the same preference pane) also gives you access to those funny characters that can't be accessed from the keyboard. Some applications have links to these palettes and viewers built-in to menus for quick access, like Special Characters from the Edit menu in Safari.

  • Pound Sign (u00A3) in Sender SFTP Channel  - using MessageTransormBean

    Hi,
    I am reading a csv file using Seeburger SFTP Sender Communication channel.
    One of the field has pound sign  like    £250 forTution
    With default UTF-8 codepage I am geting a square symbol instead of £ sign.
    I tried to set codepage to ISO-8859-1 and windows-1252 and other UTF code pages using MessageTransformBean's Transform.ContentType = text/xml;charset=ISO-8859-1
    They are giving some other special characters for £ sign.
    What is the correct code page we should use to read £ sign correctly into payload. Any suggestions are greatly appreciated.
    Regards,
    Ramesh

    Thank you Stefan! That helped me too. I have only one additional remark.
    My problem was that this solution didn’t work at the beginning because the line
    Plain2XML Transform.Class com.sap.aii.messaging.adapter.Conversion
    was always the first line. Every time I tried to put the ContentType line in the first row it becomes the second after saving.  So I’ve done the following trick. I added the MessageTransformBean twice with the names Plain2XML_Step1 and Plain2XML_Step2 (in this order). In the module configuration part I added the following three lines:
    Plain2XML_Step1 Transform.ContentType text/plain;charset=iso-8859-1
    Plain2XML_Step2 Transform.Class com.sap.aii.messaging.adapter.Conversion
    Plain2XML_Step2 Transform.ContentType text/xml;charset=utf-8

  • Asia/Pacific characters are replaced by the pound sign ("#")

    Having a problem sending e-mails and faxes from SAP (EH&S) that contain Asia/Pacific fonts.  The e-mails look good in SAP but in Outlook the Asia/Pacific characters are replaced by the pound sign ("#").

    System Preferences > Keyboard > Text. Click the + symbol to add a keyboard shortcut. Click in the left empty Replace text window and place GBP there. Tab, and enter option+# (£) in the With text input area. Click outside of this row to set the contents. Exit System Preferences.
    In the application where you wish to have this substitution performed for you, in the Edit menu > Substitutions submenu, select Text Replacement. Then when you type GBP, a floating panel will open below GBP with the pound sterling symbol — just press the spacebar.
    Another approach is to use the special character viewer from the bottom of the Edit menu. If ISO-8859-1 is not one of your categories, use the gear icon in the top left to add it. Click on the £ symbol, and in the enlarged view on the right, click on the Add to Favorites. In the future, when you want to add the pound sterling symbol, launch this character viewer, click on Favorites at the top of the category column, and then double-click the £ symbol to have it inserted at the current pointer location in your document. Not as efficient as typing GBP.

  • Parsing a querystring GET request that has a pound sign (#)

    I apologize if this posting is in the incorrect forum, but I couldn't figure out which one was MOST appropriate, so I chose the most general. I have a Java program that processes a URL request from an external application. The URL is invoked with several query string variables, including one for ShippingAddress. I found yesterday that when their system passes a pound sign (#) in the URL, it crashes my program. Apparently, the pound sign is not just automatically converted to a hex equivalent (%23) like a space(%20) is, for example. So when I try to parse it, it fails. For example, the URL might be something like this:
    http://www.mydomain.com/process.nsf?openagent&shippingaddress=123 Main Street #307
    The spaces do not cause any issues. However, when it comes to parsing the " #307", it dies.
    To parse the query string, I'm using the following utility class. I'm not a Java guru, so my question is if there is a way to modify this class to handle the # sign in the URL? Going to the developers of the other system and requesting they replace the # with a hex value will take months. Thank you!
    import lotus.domino.*;
    import java.util.*;
    public class UrlArguments extends Hashtable {
    public UrlArguments() {
    public void fromString(String args) {
    StringTokenizer toks = new StringTokenizer(args, "&=", true);
    String tok = toks.nextToken(); // first token is command: skip it.
    String key = null;
    boolean bKeyNext = true;
    while (toks.hasMoreTokens()) {
    tok = toks.nextToken();
    if (tok.equals("&")) {
    if (bKeyNext && (key != null)) {
    // Null value
    put(key, "");
    key = null;
    bKeyNext = true;
    } else if (tok.equals("=")) {
    bKeyNext = false;
    } else {
    if (bKeyNext) {
    key = new String(tok);
    } else {
    if (key != null) {
    put(key, tok);
    key = null;
    // We have to special-case a valueless argument at the end.
    if (bKeyNext && (key != null)) {
    // Null value
    put(key, "");
    public void fromSession(Session session)
    throws lotus.domino.NotesException {
    AgentContext agentContext = session.getAgentContext();
    Document doc = agentContext.getDocumentContext();
    // First add all of the CGI variables. They are in the document context.
    Vector items = doc.getItems();
    for (int iItem = 0; iItem < items.size(); iItem++) {
    Item item = (Item) items.elementAt(iItem);
    put(item.getName(), item.getText());
    // Now parse the URL arguments themselves.
    fromString(
    doc.getItemValue("QUERY_STRING_DECODED").elementAt(0).toString());
    // A simple accessor to make casts unnecessary.
    public String getString(String key) {
    return (String) get(key);
    }

    ot just automatically converted to a hex equivalent (%23) # is a valid part of the URL, it is a separator for the fragment part.

  • ORA-01461 - Inserting pound sign

    Wonder if anyone can help with this issue?
    I'm running Oracle Forms [32 Bit] Version 10.1.2.0.2 (Production) with OC4J 10.1.2.0.2 against Oracle database version 11.1.0.7.0. where the NLS_CHARACTERSET on the database is AL32UTF8.
    NLS_LANG on my machine is:
         SQL> @.[%NLS_LANG%].
         SP2-0310: unable to open file ".[AMERICAN_AMERICA.WE8MSWIN1252]..sql"
         SQL>
    I have a form with a non database block containing a push button and text item field, Data Type - CHAR, Maximum Length - 1000, Data Length Semantics - Null
    create table amc_pound_test
    ( apt_id number
    , text1 varchar(2000)
    Using the button with a When-Button-Pressed trigger I try to insert the text, "£1", into the above table using the following code:
         DECLARE
              aSeq Number;
         BEGIN
              Select NVL(MAX(Apt_Id),0) + 1
              Into aSeq
              From AMC_POUND_TEST;
              Insert Into AMC_POUND_TEST
              ( apt_id
              , text1
              Values
              ( aSeq
              , 'Direct: '||:block3.text1
              commit;
              insert_rec(:block3.text1);
         END;
    Where insert_rec is a program unit defined as:
         PROCEDURE insert_rec ( pi_Text1 amc_pound_test.Text1%TYPE ) IS
              aSeq Number;
         BEGIN
              Select NVL(MAX(Apt_Id),0) + 1
              Into aSeq
              From AMC_POUND_TEST;
         INSERT INTO AMC_POUND_TEST
         ( Apt_Id
         , Text1
         VALUES
         ( aSeq
         , 'Via Proc: '||pi_Text1
         commit;
         END;
    When the Maximum Length of field on the form (:block3.text1) is set to 1000 or less both inserts work fine.
    Once the Maximum Length is increased to more than 1000, e.g. 1001, 1333, 2000 the insert via the Insert_Rec procedure fails with an ORA-01461 error.
    However, if I remove the pound sign, both inserts work fine!
    Any ideas?
    Many Thanks
    Anton

    Seems to be related to Oracle Bug 5143833.
    I'll update if the workaround to set the NLS_LANG to UTF8 works on customer site.

  • How to get a euro or pound sign

    hello guys,
    i wonder if there is a way to generate a euro or pound sign on a mac keybord.
    we do work a lot with currencies and that would come very handy.
    best regards
    chris

    In System Preferences-Keyboard select 'Show keyboard viewer in menu bar'.
    Click on the icon that appears in your menu bar and select 'Show keyboard viewer'.
    Now press opt/alt, ctrl, fn, etc... and it will show you all the characters available on your keyboard.  Also try combinations like shift+alt/opt.
    Apologies for the general answer but I don't know where you are or what international settings are set on your computer and hence what your keyboard layout is.

  • Parsing of Pound sign?

    Hi,
    I am retrieving the data frrom database and then creating dom ..but i am unable to transform "Pound Sign" with the help of encoding UTF-8 as well as ISO-8859-1....so pl guide me........thnks

    Hi, our team is also having a very similar problem to the one described. I'll try to cover all the bases with the description below.
    We are writing java code to interact with a web service that gives us product price information. Some of these prices are in British Pounds (GBP/�). An example element is : <FormattedPrice>�29.57</FormattedPrice>.
    The encoding of the XML document returned is UTF-8. All references to pound sign mean '�' - British Pounds.
    On windows, we have no problems parsing the output. However on Linux, the document does not parse cleanly at all.
    We think that this is due to the platform encoding being iso-8859-15 rather than UTF-8, although I was told this rather unreliably.
    The java code doing the parsing is:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    InputStream in = url.openStream();
    doc = builder.parse( new InputSource( in ) );
    doc.normalizeDocument();
    Then we use XPATH to extract the specific price element.
    Our Junit test code expected results i.e
    String result = "�12.34"
    We see the response XML like this: <FormattedPrice>��29.48</FormattedPrice> with an extra character included.
    Here's a summary of our setup:
    OS: WinXp sp2 / Linux fedora core 2
    JDK: 1.5.0_05
    I've set the -encoding javac flag via ant. However I still get a mismatch.
    Any suggestions would be greatly appreciated.

  • Excel - pound sign problem in HyperLink

    I understand excel doesn't normally support pound sign within Hyperlinks. However, it is possible to bypass somewhat by using a function
    e.g. HYPERLINK("http://"&H9,H9) where H9 cell includes the rest of the hyperlink with the # within.
    However, still when i click on the resulting Hyperlink in the cell, IE opens with the URL containing "%20%-%20%", replacing the pound sign,
    and thus the destination isn't reached (a URL error is displayed in IE).
    To clarify, the pound sign is required in the URL, so that IE would goto the web page where a WorkItem of TFS is displayed in TFS web access.
    If there were a means to specify a URL for TFS web access to goto the work item web page without pound sign, then it would be great.
    Maybe there is a solution in excel how to make it so that the pound sign would appear correctly not just visibly in the cell as above, but rather when passed by excel to IE in the actual URL.
    Is there ?
    Thank u in advance.

    Hi,
    The pound sign (#) is not accepted in hyperlinks in Office documents. 
    The KB article below provided two workarounds for this issue, however they seem not apply to your situation:
    http://support.microsoft.com/kb/202261/en-us
    Since we are not familiar with TFS, I'd suggest you post your question to the TFS forum to confirm if there are any means to specify a URL for TFS web access to goto the work item web page without pound sign:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=tfsgeneral
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Pound sign (#) in auth failure in BI

    We get a pound sign in an RSSM trace of an auth failure.  It is related to a profit center hierarchy.
    When we grant a different hierarchy, there is no auth failure, but the pound sign still shows up in the trace, just with a green light.
    What might cause this?  Is it wise to grant the pound sign, or does it signify a data problem?

    Hello,
    Pound sign minds unassigned hierarchie value.
    The value displayed on the report cannot be assigned to a hierarchie node.
    If the light is green : No problem
    Did you read the following guide : How Tou2026 Work With Hierarchy Authorizations.pdf ?
    Hope this helps

  • Removing the Pound Sign in MAP IDs

    We want to use MAP IDs in our Web Help output in order to
    bring up the correct document for each screen. The MAP IDs are
    based on the screen names, which makes things pretty easy for the
    developers. This is the code for calling the desired screen:
    http://www.company.com/help/help_csh.htm#topicId=TOPIC,withnavpane.
    Is there ANY WAY (like with javascript or some other magical
    thing) we can change the pound sign (#) to a question mark (?) and
    still bring up the correct page? We're hoping there is something we
    can do in RoboHelp so we don't have to drag a bunch of developers
    into it.
    Any suggestions you have would be greatly appreciated.

    Hello bgatch,
    I do not believe that there is a way to do what you are
    after. I suspect the better question is why do you want to replace
    the # with a ? in the first place? Hopefully, once we understand
    the workflow a bit better, we can come up with a better answer for
    you.
    Thanks,
    Bobby W
    Adobe Customer Care

  • Keyboard shortcuts to pounds sign

    What do I type on my keyboard to get a UK pounds sign on a US keyboard. I have a macbook and a macbook pro.  But the shift + 3 doesnt work??

    Macjohnkayson wrote:
    I have just bought a MacBook Air with a US keyboard and I can definitely say that with mine option + 3 produces #, while shift + 3 produces £.
    Which key does what actually has nothing to do with the hardware keyboard.  It's determined by the software layout you have active in system prefs/keyboard/input sources.  Shift + 3 giving £ means you have the "British" or "British PC" layout active.  If you switched to US, Shift + 3 would be #.  Is that not what is printed on the 3 key?
    If you have £ printed on your 3 key, it is a British hardware keyboard and not a US one.

  • Can i change the doller sign to a pound sign on my U.S Macbook Pro?

    Hi,
    I have what i am guessing is a U.S Macbook Pro as there is no pound sign only a doller sign. Can i re-configure the key to a pound sign somwhere under OS X 10.6?
    Thanks.

    Are there key combos for other currencies as well? Can you point to a link (if such link exists) showing key combos for other symbols?
    1) In System Preferences, open "International" in 10.5 or "Languages and Text" in 10.6.
    2) Select the tab "Input Sources" or "Input Menu."
    3) At or near the top of the list of input methods, palettes, etc, is "Keyboard Viewer" (older OS versions) or "Keyboard & Character Viewer" in 10.6. Check the box next to it.
    4) Check the box "Show input menu in menu bar" to have fast access to the Viewer.
    With the viewer open, press the modifier keys on your keyboard and watch the characters change from their defaults to optional symbols. Try SHIFT alone to see expected results. Try OPTION and SHIFT + OPTION to see a wealth of other goodies.
    It works exactly like the old Key Caps function in Mac OS9 and earlier--it's just not as conveniently placed.
    You can also select Edit > Special Characters... from most apps. That brings up another palette of ones form which you can select, sorted by category. One category is Currency.
    Message was edited by: Allan Jones

  • When trying to sign in with 2 different apple id's I get a message saying "unknown error". I succeed to sign in directly from my iphone though. What has changed?

    When trying to sign in with 2 different apple id's that i use for year now, I get a message saying "unknown error". I succeed in signing in directly from my iphone though. What has changed?

    You will need to contact iTunes support. 

  • When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified

    When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?

    settings -> iTunes & App Store
    click on apple ID listed there
    select Sign Out
    sign in with the proper account
    from then on, when the store ask for your password it should be with the correct ID

Maybe you are looking for

  • Why is it impossible to export a file with the same fidelity as the version iMovie itself plays for me?

    My movie is a photo slideshow using Ken Burns effect throughout, using iMovie 09. It looks beautiful when I play the project directly from within iMovie, even when enlarged to fullscreen playback. Is there really no way to set the quality settings hi

  • Performance Report domain controllers

    Hi AD experts, I'm lookink for a tool to generate performance report on some DC's. a script to createt Data collector Set (on Perfmon) like http://archive.msdn.microsoft.com/ExPerfwiz and the tool to parse the report like PAL : pal.codeplex.com Is th

  • Oracle 9i DB / Oracle 9i Developer Suite / Windows XP

    My questions: Is it possible to install the Oracle 9i Database and the Oracle 9i Developer Suite on one machine (Windows XP)? Which I have to install first? Or is it equal?

  • Read file without knowing full name

    Dear All, I want to read data from a file but without knowing the file's full name. For example i have data files from a program that the first letters of the data files are the date and the rest some numbers i cannot predict i.e 20081027_5323621. Is

  • Adobe Premier Elements Version 12 Registration

    When I open up my Adobe Premier Elements Version 12, it asks me to sing in to my account but when I do it displays an error message "There was an error contacting the server. Check your internet connection and try again" Internet works fine. It is no