Problem showing Trademark symbol using ascii code in Flex 3

I am facing problem in displaying trademark symbol (™) using ascii codes(it is showing square symbol). I have ascii code stored in the database for trademark symbol(ascii code "™" ). So I can't use Hexa code instead of ascii code. But using ascii code I am able to show copyright symbol. Following is the sample code :
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
        var trademarkSymbol = "\u2122";
        var trademarkSymbol1 = "&#153;";
        var copyrightSymbol = "\u00A9";
        var copyrightSymbol1 = "&#169;";
    </mx:Script>
    <mx:Label text="Macromedia™"/>
    <mx:Label text="Macromedia{trademarkSymbol}"/>
    <mx:Label text="Macromedia{trademarkSymbol1}"/>      \\ problem  code
    <mx:Label text="Macromedia©"/>
    <mx:Label text="Macromedia{copyrightSymbol}"/>
    <mx:Label text="Macromedia{copyrightSymbol1}"/>
</mx:Application>
Please suggest some solution.
Regards
Rajat Sahni

You must use Unicode values, not Windows extended ASCII values.
The Unicode value of a copyright symbol is hex 00A9 or decimal 169. This happens to be the same as where it is in a Windows' extended ASCII character set, but this is irrelevant. The Unicode value of a copyright symbol is hex 2122 or decimal 8482. In Windows' extended ASCII it has a different value, hex 99 or decimal 153, but again this is irrelevant.
So the reason you think it "works" for the copyright and not for the trademark is that the two character sets agree on the value of the copyright but disagree on the value of the trademark.
Moral: Find a good Unicode table.
Gordon Smith
Adobe Flex SDK Team

Similar Messages

  • Problem showing Euro symbol in Jlabel in Windows 98

    Problem showing Euro symbol in Jlabel in Windows 98
    When i place the euro symbol as text using \u20ac it does not work in windows 98 but does so in win 2000.
    I tried using JDK physical fonts also
    Kindly help me out.

    Hi,
    This was a bug and should be fixed in 1.3.1_02 see:
    http://java.sun.com/j2se/1.3/ReleaseNotes.html
    Hope this helps.
    Regards,
    Matt
    Java Developer Technical Support
    Sun Microsystems.

  • Problems to get the correct Ascii code from a char

    We need convert each of the chars into a string to a short number, send it to another application and then convert again each short to a char, and so retrieve the original string.
    We have tested this piece of code to convert from char to short and again from short to char:
    private static BufferedReader stdin = new BufferedReader (new
    InputStreamReader(System.in)); private static String user_key;
    String texto = "aeiounAEIOUN0123456789" ;
    for (int aux=0; aux<texto.length(); aux++)
    c = texto.charAt(aux); s = (short)c;
    System.out.printin ("char = '" + c + "' short = " + s);
    // Each time that the user press a key, we process a new char
    // from the String.
    try {user_key = stdln.readLine();} catch (lOException io) {}
    And when the program process the � (ascii 164) and � (ascii 165) chars, it does not work right.
    The output is:
    char='?' short=241
    char='D' short=209
    Instead, if we read directly from the keyboard, this code works right:
    while (true)
    try {user_key = stdln.readLine();} catch (lOException io) {}
    c = user_key.charAt(0); s = (short)c;
    System.out.printin ("char = '" + c + "' short = " + s);
    And we get these outputs when we press the � (ascii 164) and � (ascii 165) keys:
    char='?' short=164
    char='?' short=165
    Please can you say me how can I change the first piece of code to it works right with the 'n' and 'N' chars?
    Thanks in advance
    Jos?

    Run your application with "java -Dfile.encoding=CP850 ClassName", or change the encoding on run time to CP850 by using the appropriate constructor of InputStreamReader.
    I recommend the first option since the problem doesn't exist outside the DOS console of Microsoft Windows. If you use the second approach your program wont be portable.

  • Problem with Field-symbols when copying code from 4.7 to 4.6C

    Dear SDN
    I developed the code below for 4.7 system. It works fine on 4.7, but it is failing to compile on 4.6C.
    field-symbols : <pnnnn> type any.
    assign ('wa') to <pnnnn>.
    move-corresponding p0001 to <pnnnn>. " <i>Error <pnnnn> is not an internal table with a header line</i>
    unassign <pnnnn>.
    Can anyone please assist?
    Regards
    Kriger

    You cannot use MOVE-CORRESPONDING with untyped variables in 4.6c. If you move infotype data between infotype buffer (of type PRELP) and infotype workarea, then you should use MOVE.

  • Problems showing image file using ShowProperty servlet

    Hi there,
    I´m having problems trying to show an image from the repository using ShowProperty servlet. My node is of type image and my repository is a Library Services enabled repository. When I try to show my node´s binary property "file" the servlet returns the following message "A Primary Property is not defined for Node:...". But checking the node´s ObjectClass I can see that the file property is defined as a primary property. Can somebody help me on this ?
    tks,
    George Earp

    Hi Anders,
    first thanks for trying to help me. Answering your questions in order: I certified myself that the node was saved and checked in using the Portal Administration site. I looked in debug mode and the Node is loaded correctly but the properties aren´t there. I have some more information for you. I decompiled the servlets (ShowBinaryServlet and ShowPropertyServlet). The news are that ShowBinaryServlet is a ShowPropertyServlet´s child that has no additional implementation. Other relevant information is that ShowPropertyServlet implementation gets the Node throught NodeOps object and try to get the binary property with it. But, reading the API and doing tests I could only get my Node properties throught a Virtual Node (see NodeOps Interface part of the API). That´s because my Repository is a managed repository. So, the servlets can´t find the bynary property in my Node because it isn´t there... It is under a VirtualNode... Am I right ? If that´s true I believe I´ll have to implement a solution myself... Too sad... :(
    Message was edited by eduardo.earp at Jan 25, 2005 9:21 AM

  • How to use ascii code?

    hello everyone, i have coded a program that user type text in (textArea1) and then press a button and copy this text to (textArea2) , before it copy this text i got a tokenizer that make every word copied in a single line, the question is , how i can make the program only accept arabic charachters? i mean , if user type english or type numbers or anything except arabic text, it gives a message that he should only use arabic char.. hope to hear from u soon

    you should check the integer code of every char in the string to make sure it falls within the unicode range of arabic letters

  • How do I get labview for linux to send out ascii code to a motion controller?

    I have posted part of this problem but I will now try to clearify things. I have an x-y stage that needs motion control. I have to run the motion controller from within a linux system (RedHat 7.1) due to others in the research area. I have found a motion controller card (PCI) that will run under linux. This card is not National Instruments. I understand that they do not have drivers for their controller cards. This other card comes with the companies own software that uses ASCII codes to move the motors on the stage. I was hoping to create a program that could call those ASCII codes to move the stage. An example would be if a user wanted to have the stage move to the right he would press a b
    utton on the screen instead of typing in whatever ASCII could that move to the right happens to be. How would I go about programming something like this? I have heard of others doing things like this but I am unsure of how to program labview to send out ASCII codes to a PCI card to move motors.

    > would I go about programming something like this? I have heard of
    > others doing things like this but I am unsure of how to program
    > labview to send out ASCII codes to a PCI card to move motors.
    Look in the manual to see get familiar with the sequences of codes you
    need to write, and more importantly, where you write them to. I suspect
    a memory location, but it could be a socket or port.
    Each of these locations will have a slightly different way of accessing
    it. Once you know, search devzone for how to do it on linux, or post
    back here.
    After you can send the codes to the right location, you probably want to
    build a state machine that simplifies the interface and prevents certain
    actions from taking place. Now determine which buttons or
    keys perform
    which actions and use either the event structure or the older polling
    for control changes to affect state changes in the state machine.
    I'm summarizing here assuming that you know what a state machine is and
    why you'd want to use it. If I'm assuming too much, do some research
    and post again with more specific questions. Also be sure to look at
    example VIs as they show how to respond to UI actions.
    Greg McKaskle

  • Getting ASCII code of a character in ABAP. How?

    Hi,
    i need use ascii codes in my program.
    I must get ascii code of a character. How can i get ascii code of a character?
    Thanks.

    Chk these links:
    http://www.sapdb.org/7.4/htmhelp/07/a16384a57411d2a97100a0c9449261/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-to-get-ascii-code-234764

  • How toi deal with ascii code in manipulating strings or chars!

    hi ! my functions shoud do the following
    i pass a char value like 'a' , 'b' ,'c'... and it sould return the next value to me ( a---> b , c----> d)
    i know that i shall use ascii code to resolve that so can anyone grant me the source code for that solution and help me ?

    What about 'z'?char after (char ch) {
        return (ch == 'z') ? 'a' : ch + 1;
    }Kind regards,
    Levi

  • Using source code?

    Sorry for noob questions, but I'm confused on how to use source code on Flex.
    Say I download saqoosha's desktop fireworks -
    http://saqoosha.net//?s=fireworks
    I ussually just extract the folder into my workspace, go to flex, create a new actionscript project and name it the name of the folder in my workspace. Most of the time this doesnt work, as I dont know how which actionscript file launches the app. Does anyone have an tips for me? And if possible could somone explain how I can use saqooshas source code and launch it through flex.
    Thank you so much,
    Michael

    Try unzipping the folder somewhere else, and using File->Import->Flex Project to bring the project into your workspace, rather than copying directly. Then Flex will figure out what file to run etc for you. I pulled down the fireworks project you mentioned and ran it without issue.

  • Using ASCII control codes with BI Publisher

    When trying to print barcodes with BI publisher, I cannot convert the special ASCII control code "GS" (n° 29) with the barcode font I am using (IDAutomationC128S). I got this font some time ago, together with the xdocore.jar file containing the java class that implements the algorithm to encode in 128 barcode. I all works fine when it comes to encode strings containing normal or traditional chars, I get the start char, the stop char, and the checksum control char. However, the client asked us now to insert variable length fields in the barcode. This fields must start with the number "240" so that the barcode reader will know that there's a variable length field next, and they must have the ASCII control code "GS" (group separator, n° 29) to mark the end of the field.
    I first tried to insert this char by doing ALT+29, and I got this: "↔". However, the font I am using does not recognize this char and it does not transform it into a barcode. I then went to the ID Automation website (http://www.idautomation.com/fonts/code128/faq.html) and I saw that, in order to code this char, I should use the symbol "}". I added that in my string, at the end of the field, but then the barcode reader shows the symbol itself and it does not interpret it as the "GS" control code.
    Anybody knows how to deal with that? Anybody knows/has a font able to show this kind of chars?

    Karen,
    In your report query you can use logic like the following to conditionally report on a single or multiple selected values.
    For example you have a page (page 11) where you call the report from and on that page you place a shuttle or multi-select item named P11_PERSON_ID_LIST. When shuttle and multi-select items contain values they are separated by colons. Looks like 213:342:234:456:543
    You can then reference the P11_PERSON_ID_LIST in your query like the following.
    SELECT p.person_id
    ,p.person_name
    FROM people p
    WHERE (:P11_PERSON_ID_LIST IS NULL
    OR instr(':'||:P11_PERSON_ID_LIST||':',':'||p.person_id||':') > 0)
    You can also use logic like the following in your report queries when you have a single optional value in an item.
    SELECT p.person_id
    ,p.person_name
    FROM people p
    WHERE p.person_id = nvl(:P11_PERSON_ID, p.person_id)
    Hope that helps,
    Todd

  • I have some movies I used redempetion codes for in iTunes on my computer hard drive, but they are not showing up on my Purchased list nor in the Cloud. I am concerned if something should happen to my computer that the movies will be lost.

    Like the topic says, in the past year, I have used redemption codes on blu-rays I have purchased in iTunes and downloaded copies of the movies to my desktop. The problem is I am not seeing them in the Cloud if I want to watch them on my iPad or Apple TV. It also worries me that should my computer crash, the movies are lost since the codes are already redeemed. Advice?

    I can only answer your first issue. In your ipad go to settings, iTunes &amp; App Store, click on your Apple ID and sign out. Wait a few minutes and then log back in. The hidden apps shouldn't show any more on your ipad.

  • I m trying to send a email and sms alert using php and it works fine on all systems except on Iphone,the problem is swedish charcters doesn't show on iphones used by people in sweden but works absolutely fine on iphones in india. plz help

    I m trying to send a email and sms alert to people and it works fine on all systems expect on Iphone,the problem is swedish charcters doesn't show on iphones used by people in sweden but works absolutely fine on iphones in india.
    the code i m using is right below,plz have a look and not into the problem as problem is a bit strange.
    $headers = "MIME-Version: 1.0\n" ;
                $headers .= "Content-Type: text/plain; charset=\"UTF-8\"\n";
                $headers .= "X-Priority: 1 (Highest)\n";
                $headers .= "X-MSMail-Priority: High\n";
                $headers .= "Importance: High\n";
                // Additional headers
                $headers .= 'From: Rakesh <[email protected]>' . "\r\n";
                foreach($disemail as $email)
                    $to = $email;
                    $subject = $succMessage['email_subject'];
                    $message = $smsText;
                    mail($to,'=?UTF-8?B?'.base64_encode($subject).'?=',$message,$header);
            if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
            $smsText = utf8_encode($smsText);

    i have tried this new charset combination specifically for iphone and i m waiting for response from sweden alliance.....i hope this works fine as iso works great for 8-bit characters.
    would like to have your thoughts though.
    $headers .= "Content-Type:text/plain; charset=\"iso-8859-1\"\n  format=flowed Content-Transfer-Encoding: quoted-printable";

  • Problem in using tax code

    hi Gurus,
    m facing very different problem from yesterday. The day b4 all tax codes were working finely bur nw they are showing error in calculation.
    e.g.
    if i m using tax code with 14%BED, 2%ECess, 1%SEcess, 4%VAT.
    But when entering in PO conditions, user delete the BED condition and uses manula excise condition value.
    Say v r ordering 100 pcs of 50 each.
    So total amt will be 5000
    Manual excise 14%   =  700
    ECess 2%                =    14
    SEcess                    =    07
    VAT                          = 228.84    
    which is showing correctly in condition tab.
    But when v assign tax code with same combination i.e. 14,2,1,4 n whn clik on taxes its showing
    BED deduct             = 70 i.e. 10% of manual excise which v entered.
    Ecess                     = 1.40 i.e. 2 % of above value (70)
    SEcess                   = 7 which is correct
    VAT                        =  203.14 which is from above addition.
    M facing this problem fron yesterday only. I compared pricing procedure also, n didnt find any change made. Also no one has made the changes. V r using TAXINJ. Also when I enter BED = 100% in tax code then some tax codes work finely. But some didnt. What may be the problem?
    Regards

    Hi
    My guess is if you are using customised Tx code with the deductible Tax code for the 3 taxes then there is no question of it calculaiting wrong percentage during PO, only thing you need to select the right Condition types.
    IF you are maintaing conditions in FV11 for the vendor pleae do check if it is picking some thing else othere than what you have entered i. e 14% then it is certain that the corresponding vendor is picking som other record instead of the current what  you have created. Pleae try to create conditions Plant specific  with vendor/material combination and also check for the validity of the condition also.
    Best regards

  • There was a problem while updating ios 7.1 now my ipad isnt starting up just shows a symbol of itunes with a arrow towards it with its USB cable

    there was a problem while updating ios 7.1 now my ipad isnt starting up just shows a symbol of itunes with a arrow towards it with its USB cable

    YOU ARE IN RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

Maybe you are looking for