Unicode characters longer than 2 bytes

It seems that Flex 3 only handles double-byte Unicode characters.  Unicode has characters outside the BMP (Basic Multilingual Plane), which have codes greater than 2^16 and cannot be encoded in two bytes, but can be encoded in UTF-8.  Will such characters be supported in the future, e.g. in Flex 4?
Thanks,
Francisco

How to tell whether a "character" (really a UTF-16 code unit) in an AS String is actually part of a surrogate pair:
D800..DBFF: high surrogate
DC00..DFFF: low surrogate
everything else: a character

Similar Messages

  • Code of a method longer than 65536 bytes

    I just moved my web application (jsp/servlets, no EJB) from apache tomcat to Oracle 9iAs Container for J2EE (OC4J). Everything is working fine except one jsp file, called "EditTmpForm.jsp". Basically, this jsp file is used to update existing records, so it needs to first retrieve the data from the database by using the primary keys. I used a java bean to handle the JDBC/SQL code and plugged that bean into the jsp file. The jsp works fine on tomcat, but when I run it on OC4J, I got the following error:
    500 Internal Server Error
    Error parsing JSP page /pirs/jsp/EditTmpForm.jsp
    Error creating jsp-page instance: java.lang.ClassFormatError: jspPage19jsp_EditTmpForm.jsp (code of a method longer than 65536 bytes)
    Why does it give me this error? 65536 bytes is only 64k, which can be stored in a floppy disk.
    Thank you very much if you can give me some idea why this occurs.
    James

    I looked at the code after a jsp compiled to a servlet. The
    jspService method of "EditTmpForm.jsp" is about 801 KB. But for another jsp "EditOperation.jsp", the  jspService method is about 236 KB.
    Both are much greater than 64 K, but why it runs okay for "EditOperation.jsp" but gives me error for "EditTmpForm.jsp"?
    Furthermore, since the HTML form is long, so the HTML code itself is bigger than 64 K, how can you prevent your _jspService method so that is is shorter than 64K?
    Thanks for your help!
    James

  • Code of a method longer than 65535 bytes...

    I am working with Tomcat32. I made a taglibrary(that includes just one tag, for testing) and implemented the tag in java (a simple one, it's just writing a text). I put that tag into a JSP page and when I go to that page, the tag displays a text on the screen. Everything works just fine, but if I have a greater number of tags inside the JSP(about 170), then I get an error message. Tomcat makes the .java -file, compiles it to the .class file, and then just before displaying the text, I get the following err.msg: "Code of a method longer than 65535 bytes..." Thanks for any help I get ! Bye, Nico

    The code of a method cannot longer than 65535 bytes, but note that in
    http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html
    the attribute length field is specified as four bytes:
    u4 attribute_length;
    You can demonstrate this for yourself with a program I recently posted here
    http://forum.java.sun.com/thread.jspa?threadID=603213
    by changing the num_calls from 5000 to 50000 .
    The error will look like:
    Exception in thread "main" java.lang.ClassFormatError: a1000000000 (Code of a me
    thod longer than 65535 bytes)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
    at maxperm_cltest$MyLoader.doClass(maxperm_cltest.java:303)
    at maxperm_cltest.main(maxperm_cltest.java:282)
    I note that repeatedly calling a no-arg void method is only four bytes per call. Your example, compiled by Sun's javac, would only consume about 50 bytes for the code and 100 bytes in the class file overall.

  • Code of method longer than 65535 bytes.

    What can I do if I get this error message?
    I am using JDK 1.3 and Tomcat32.
    Thanks,
    Nicoleta Iacob

    According to http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html, "The amount of code per method is limited to 65535 bytes...". You may try to use smaller methods.

  • Restrict the LONG RAW Column with less than 32760 bytes in the SELECT

    When i am trying to access a LONG RAW Dataype wchich has characters greter than 32760 bytes i am getting this error.
    Error -6502: ORA-06502: PL/SQL: numeric or value error
    I came to know that PL/SQL will only be able to access the first 32760 bytes of a LONG RAW. If we try to fetch a LONG RAW from the database into PL/SQL variable which exceeds the 32760 byte limit then we encountered the above error.
    Can anyone tell to avoid this error can we write a query to restrict the output to get only those records which has LONG RAW length less than 32760 bytes.
    Since we canot use utl_raw.length() in the Select Statement, is there any function to restrict the the records for less than 32760 Bytes only for LONG RAW datatype, so that i will not get any records for more than 32760 bytes and we will not get this error.
    REquest you to please help.

    Hi
    we do not have an option of migrating the LONG RAW to BLOB or any kind of ALTER to the table.
    We want to restrict the use of Records from the Table which has data for LONG RAW column less than 32760 bytes, so that we will not get the PL/SQL numberic Error
    any function for LONG RAW that can be used in SQL like for varchar2 we can use
    select length(NAME) < 100 from tb_emp+
    i.e it will get records only which has NAME less than 100 characters.

  • HMAC (SHA1) key longer than 81 characters not possible?

    Not sure whether I'm in the correct forum...
    To sign a message for a specific application with HMAC-SHA1 hash I need a 83 character key.
    My problem: the function module 'SET_HMAC_KEY' throws the exception "param_length_error". After I've testet with several key length, I found out, that the maximum valid length is 81. Is there any reason for this?
    With 3rd party libraries (ie. Python and Javascript) longer keys are working.
    Code:
    CALL FUNCTION 'SET_HMAC_KEY'
      EXPORTING
        generate_random_key         = ' '
        alg                         = 'SHA1'
        keycstr                     = 'cB1phTHISISATESTVuZMDmWCz1CEMy82iBC3HgFLpE&7857T...YFqV93gRJQ'
        client_independent          = ' '
      EXCEPTIONS
        unknown_alg                 = 1
        param_length_error          = 2
        internal_error              = 3
        param_missing               = 4
        malloc_error                = 5
        abap_caller_error           = 6
        base64_error                = 7
        calc_hmac_error             = 8
        rsec_record_access_denied   = 9
        rsec_secstore_access_denied = 10
        rsec_error                  = 11
        rng_error                   = 12
        record_number_error         = 13
        OTHERS                      = 14.
    Best regards, Uwe
    Edited by: Julius Bussche on Aug 5, 2010 10:19 PM
    I truncated the key further because in a coding tag it toasts the formatting when too long.

    Hi,
    yes, we can :-). Let say that SAP implementation supports a key with size more than 81 bytes. Then according to specification if the key is longer than block size of hash function (64 bytes for SHA-1) then it would use hash function to reduce original key to new key with size equals to output size of hash function (20 bytes for SHA-1). Therefore doing this step manually before calling SET_HMAC_KEY is equal to calling SET_HMAC_KEY which supports keys longer than 81 bytes.
    The easiest way how to check this is to compare some HMAC-SHA1 implementation with the result produced by my proposed logic.
    DATA: text TYPE string,
            key_str TYPE string,
            hash TYPE hash160x,
            key TYPE xstring,
            hmac TYPE hash512_base_64.
      text = 'Hello'.
      key_str = '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'.
      CALL FUNCTION 'CALCULATE_HASH_FOR_CHAR'
        EXPORTING
          data  = key_str
        IMPORTING
          hashx = hash.
      key = hash.
      CALL FUNCTION 'SET_HMAC_KEY'
        EXPORTING
          generate_random_key = space
          alg                 = 'SHA1'
          keyxstr             = key
          client_independent  = space.
      CALL FUNCTION 'CALCULATE_HMAC_FOR_CHAR'
        EXPORTING
          alg        = 'SHA1'
          data       = text
        IMPORTING
          hmacbase64 = hmac.
      WRITE: / hmac.
    Javascript version
    var hmac = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase");
    var hmacBytes = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase", { asBytes: true });
    var hmacString = Crypto.HMAC(Crypto.SHA1, "Message", "Secret Passphrase", { asString: true });
    Both implementations return "qsXNz/wecK4PMob6VG9RyRX6DQI=".
    Cheers
    Sorry for formatting but it looks like something is broken.
    Edited by: Martin Voros on Aug 6, 2010 10:34 PM

  • Spam_scan: not wasting time on SA, message longer than

    So this is a bit strange... well to me it is.
    The size of the spam emails seems to be getting bigger, so I increased $samail_body_sizelimit first to 512 and then 1024 (which I thought was 1Meg)
    $samail_body_sizelimit = 1024*1024;
    However, I'm still seeing this, which seems odd - to me:
    Jun 23 00:14:33 server amavis[1806]: (01806-12) ESMTP::10024 /var/amavis/tmp/amavis-20090622T213134-01806: <[email protected]> -> <[email protected]> SIZE=335064 Received: from email.clayford.com ([127.0.0.1]) by localhost (email.clayford.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <[email protected]>; Tue, 23 Jun 2009 00:14:33 +0100 (BST)
    Jun 23 00:14:33 server amavis[1806]: (01806-12) smtp connection cache, dt: 1119.1, state: 0
    Jun 23 00:14:33 server amavis[1806]: (01806-12) Checking: ldKRucT2xo+o [209.250.234.229] <[email protected]> -> <[email protected]>
    Jun 23 00:14:33 server amavis[1806]: (01806-12) p005 1 Content-Type: multipart/related
    Jun 23 00:14:33 server amavis[1806]: (01806-12) p007 1/1 Content-Type: multipart/alternative
    Jun 23 00:14:33 server amavis[1806]: (01806-12) p001 1/1/1 Content-Type: text/plain, size: 147 B, name:
    Jun 23 00:14:33 server amavis[1806]: (01806-12) p002 1/1/2 Content-Type: text/html, size: 3875 B, name:
    Jun 23 00:14:33 server amavis[1806]: (01806-12) p003 1/2 Content-Type: image/jpeg, size: 202784 B, name: image005.jpg
    Jun 23 00:14:33 server amavis[1806]: (01806-12) p004 1/3 Content-Type: image/jpeg, size: 5518 B, name: image006.jpg
    Jun 23 00:14:33 server postfix/smtpd[2950]: disconnect from 209-250-234-229.ip.justedge.net[209.250.234.229]
    Jun 23 00:14:33 server amavis[1806]: (01806-12) spam_scan: not wasting time on SA, message longer than 262144 bytes: 643+334420
    Jun 23 00:14:34 server amavis[1806]: (01806-12) SPAM-TAG, <[email protected]> -> <[email protected]>, No, score=x tagged_above=-999 required=2.5 tests=[] autolearn=unavailable
    Jun 2

    See, I only had to post a question and it goes and fixes itself. Cannot see what had changed - I took 1024 back to 512 and 'seems' be happy now!

  • Can automator identify file names longer than a specified number of characters?

    I have a lot of data that I need to ultimately archive to a PC solution but it currently has a lot of files with names longer than 256 characters.  I know I can batch update the names with automator, but what about an easy way to identify them?? Is there a way to identify file names based on file name length?

    Not in Automator.  There are other ways but the question is once you have the files what do you plan to rename them. You can't just cut off all the chars above 256 as this will not ensure uniqueness.
    So what convention will you use to make the names unique?
    As for getting the files. This command run in the terminal will return all filenames over N long
    ls | awk 'length ($0) > N'
    so in your case
    ls | awk 'length ($0) > 255'
    So this could be run from an Automator workflow or Applescript to capture the filenames you want to change. But again it's the renaming that is tricky.

  • How can I to send an email with a longer than 50 characters subject?

    I'm trying to send an email through an abap program ( report ), but when the email arrives to the SOST transaction the subject is cut to 50 characters. How can I send an email with a longer than 50 characters subject?

    check this below code and do changes in ur report
    FORM SEND_MAIL_SUPPORT  TABLES   P_EM_BODY
                            USING    P_TITLE.
    *_ Start of the code to send an email notification
      DATA : ATTACH_REC TYPE I.
      DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE,
            OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE,
            OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
            OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
            DOC_CHNG LIKE SODOCCHGI1,
            TAB_LINES LIKE SY-TABIX.
    Creation of the document to be sent
      DOC_CHNG-OBJ_NAME = 'Mat Attach'(010).
      DOC_CHNG-OBJ_DESCR = P_TITLE.
      APPEND LINES OF P_EM_BODY TO OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    *Creation of the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
      DESCRIBE TABLE IT_ERROR LINES ATTACH_REC.
      IF ATTACH_REC GE '1'.
    *Start of email attachement of internal table conversition
       APPEND LINES OF IT_ERROR TO OBJBIN.
    WRITE: '----
    ' TO OBJBIN.
    APPEND OBJBIN.
    CLEAR OBJBIN.
    CONCATENATE 'CCode.' 'A/CDocNum.' '  FYear.' 'DType.' 'PDate.' '  RefField.' INTO
                 V_TEXT SEPARATED BY ' '.
    APPEND V_TEXT TO OBJBIN.
    CLEAR V_TEXT.
    WRITE: '----
    ' TO OBJBIN.
    APPEND OBJBIN.
    CLEAR OBJBIN.
    LOOP AT IT_ERROR.
    CONCATENATE IT_ERROR-BUKRS IT_ERROR-BELNR IT_ERROR-GJAHR IT_ERROR-BLART
                 IT_ERROR-BUDAT IT_ERROR-STATUS INTO V_TEXT SEPARATED BY '   '.
    APPEND V_TEXT TO OBJBIN.
    CLEAR V_TEXT.
    ENDLOOP.
    WRITE: '----
    ' TO OBJBIN.
    APPEND OBJBIN.
    CLEAR OBJBIN.
        DESCRIBE TABLE OBJBIN LINES OBJPACK-BODY_NUM.
        OBJPACK-TRANSF_BIN = 'X'.
        OBJPACK-HEAD_START = 1.
        OBJPACK-HEAD_NUM = 1.
        OBJPACK-BODY_START = 1.
        OBJPACK-DOC_SIZE = OBJPACK-BODY_NUM * 255.
        OBJPACK-DOC_TYPE = 'RAW'.
        OBJPACK-OBJ_DESCR = 'List of Error Documents'(012).  " Description
        APPEND OBJPACK. CLEAR OBJPACK.
      ENDIF.
      RECLIST-RECEIVER = S_EMAIL-LOW.
      RECLIST-REC_TYPE = 'U'.
      RECLIST-COPY = 'X'.
      APPEND RECLIST.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = DOC_CHNG
          PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          PACKING_LIST               = OBJPACK
          OBJECT_HEADER              = OBJHEAD
          CONTENTS_BIN               = OBJBIN
          CONTENTS_TXT               = OBJTXT
          RECEIVERS                  = RECLIST
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          OPERATION_NO_AUTHORIZATION = 4
          OTHERS                     = 99.
    *CHECK SY-SUBRC = 0.
    ENDFORM.                    " SEND_MAIL_SUPPORT

  • Serial write takes unexpectedly long when more than 7 bytes are written

    Hi,
    My vi is attached. 
    As you see, it's very simple.
    - output buffer fifo is set to 128 bytes, which is generously higher than my needs.
    - my baudrate is 2.5 mpbs.
    - I write string of 9 bytes such as 012345678, and the execution time of the vi is around 40 us. 
      I thought it's because of the blocking structure of the synchronous write, and I decided to switch to asynchronous
      write, since I need to go above 20 kHz.
    - when I switch to asynchronous write, it even gets worse, and I get ~58 us. it seems like asynchronous doesn't work at all.
    so far, I explained my problem. I also did some simple experiments to debug the problem.
    - when my string is shorter than 8 bytes, everything is beautiful, asynchronous write takes nearly 15 us.
      when I enter an 8 bytes or longer string, it jumps up to 58 us again.
    what am I doing wrong? I'm stuck here.
    Gorkem Secer.
    Attachments:
    serialWrite_niForum_pic.png ‏19 KB

    The driver might for a lot of reasons not want to or even can't fill up the 8 byte hardware FIFO buffer entirely. This could be for instance since it has to work around some bugs in certain hardware. It might not be necessary for the specific hardware revision in your system but that driver has to work for many different hardware systems.
    The magnitude of timing control you try to achieve is simply beyond a software system if you require reliable and hard timings. It may be possible to achieve on a simpler but still powerful embedded system with custom made software drivers and RT OS but not on a more general purpose RT OS even if the hardware is pretty powerful. But such more custom made solutions would be more than a few magnitudes more expensive to develop.
    You can keep barking up this tree but it is unlikely that NI can do much about it without redesigning parts of the RT system, which is pretty much out of question as they simply license it from Ardence/IntervalZero and only adapt it where it is strictly necessary to work with their hardware. Most likely their license doesn't even allow them to customize it at will in any other way than is strictly necessary to get it to work on their own hardware.
    Your options are as far as I can see, to either rethink the timing requirements or adapt the software in such a way that the bigger delay won't be a problem or to go with a hardware solution based on an FPGA board or similar.
    As to the difference of asynchronous write and synchronous that is mostly about what VISA API is called underneath. The LabVIEW function remains blocking for as long as is necessary to pass the data to the OS driver. In synchonous mode the LABVIEW VI calls the synchronous VISA API once and that simply waits until VISA returns from the function. For the asynchronous case LabVIEW calls the asynchonous VISA function and then keeps looping inside its own cooperative multithreading layer until VISA indicates that the asynchonous function has been performed. This is mostly for historical reasons when LabVIEW didn't have OS supported multithreading and all the multithreading happened in the cooperative LabVIEW code scheduler. Nowadays asynchonous VISA mode has almost no benefits anymore but genearlly will cause significantly more CPU load.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • "entry in field bank account number is longer than 10 characters"

    Hello Sap Experts,
    The user is getting an error on saving the bank infotype. (0009). The user is trying to create a IT0009 for an international assignee.The error is "entry in field bank account number is longer than 10 characters.
    The default characters allowed maximum specified in the technical field is 18 characters. The abaper also checked and confirmed that it is specified as 18 characters.
    This is only for a single employee.
    Please provide your suggestions.
    Thanks
    Jyothsna

    Jyothsna,
    You need to extend Bank Account number length....even though 18 will be the max length..by default assignment of length will be different from country to country. So you need to extend the length of Bank a/c number in trasaction OY17.....select the country and change the bank a/c number length to 18 and Checking rule to 5 max value length.
    Mohan

  • Tag attributes can't be longer than 8 characters?

              Hi,
              I am in the process of migrating a web application from another server to Weblogic
              7.0 and have run into the problem that none of my tags with attributes longer
              than 8 characters seems to work. The error message I get is :
              /Login.jsp(8): Error in using tag library uri='webtool.tld' prefix='tool': The
              Tag class '<classname>' has no setter method corresponding to TLD declared attribute
              '<attribute name>', (JSP 1.1 spec, 5.4.1)
              probably occurred due to an error in /Login.jsp line 8:
              <%@ taglib uri="webtool.tld" prefix="tool" %>
              I can make this go away by shortening the attribute name, but I have a lot of
              attributes with long names...is the limit configurable somwhere?
              Thanks in advance,
              Karen
              

    Are you trying to use a distribution list?
    If so, what if you get the actual email SMTP address (in outlook, look in the "E-mail Addresses" tab) and try that instead?
    Sincerely,
    Ted Ueda

  • Getting this error when saving: Names longer than 31 characters are not supported on the destination volume

    I've just tried to save a document in Pages and got this error
    Names longer than 31 characters are not supported on the destination volume
    Never had a problem like this before. I haven't changed disks or formatted disks. Running latest Yosemite 10.10
    The only reference I can find to this error on the internet says that it's for applications prior to OS X which I think we can discount.
    The only other reference I can find in the support community relates to one person with problems saving attachments in Mail and dates from early 2014.
    Can anybody give me a suggestion on what I might need to do?
    Thanks

    What format are you saving to?
    Where are you saving the files to and what is that volume formatted as?
    Have you tested with files from other applications, such as TextEdit?
    Peter

  • Invalid new password (must be no more than {0} characters long)

    Hi,
    Our EP UM data source is a SAP System where the limitation is an 8 Character password (although I understand that will increase when we upgrade).  When a newly created user changes their password from the Log-on page we get a returned message of
    "Invalid new password (must be no more than characters long)"
    Is there a parameter that can be changed to show 8 instead of ?
    I see that error message is created in a JavaBean but it calls a core sap library, not to sure if it would be wise to play around with that.
    Thanks in advance.
    Brian

    hi brian,
       i think you can change this in
    systemadmin->system config->um configuration-> security settings
       you can specify length of the password here.
          i think this will solve your problem..
    thanks..
    rajesh

  • LSK longer than 30 characters ?

    Hi !
    Is it possible to set the length of Legacy System Key to be longer than 30 characters ?
    Thank you for your help!
    Best regards,
    Peter

    Hi,
    if you speak about legacy keys for Contract account or Contract then you can create customer includes CI_EVER(tbl EVER )
    and CI_FKKVK (tbl FKKVK).
    For Contract exist enhancement "SMOD_EMDK0001 - IS-U: Contract - Subscreen Integration and Field Check".
    For Contract account exist user-exit PBO EXIT_SAPLES37_030 and PAI EXIT_SAPLES37_031.
    For customer screen you define PBO, PAI method and via spro hide standard field.
    May be exist customizing possibility to change length LSK, but i not found and always using abap-code((
    Igor

Maybe you are looking for

  • Menu bar not showing in IE, but in DW CS5 'live view' it's there.

    I am having problems with my webpage, for some reason when I am in DW live view everything works,but when I go to preview in browser the menu bar doesn't show up. I have made sure that my local and testing server files are all synced. Here is a link

  • Printing from XP

    OK, here's what I have: I have a 10.4.7 Server with every network printer on our network setup on it. They are all being shared via IPP & SMB. When our Mac users want to print to a network printer, they can choose the printer from the Shared Printers

  • Wifi problem on my macbook air 2013

    Hey I m when I connect to my WiFi it stays for sometime n stop I have to restart it for reconnecting it plzz help.me

  • Convergence problem

    Hi all , i am trying to configure the convergence but didnt really get up to it , well amconsole ,delegated administrator applications are deployed on web server working on port 81, messaging server webmail is not working as when i tried to accessed

  • Mscorlib recursive resource lookup bug

    Hi, I got crash in my application when restart of the Windows 8. Please find the assertion failure details below. Expression: [mscorlib recursive resource lookup bug] Description: Infinite recursion during resource lookup within mscorlib. This may be