Unicode literal for '\' (Backslash)

Hi there!
I've got a problem with the Java compiler. I think he is cheating me!
Just the simple command:
System.out.println('\u005c');
causes the error:
Import.java:171: unclosed character literal
System.out.println('\u005c');
^
The unicode character 005c is the backslash, and the backslash itself is the start to any escape sequence.
But isnt it possible to express the '\' as a unicode escape sequence?!?
Is this a bug of the compiler?
Greetings Maik

You are expressing \u005c as an escape, just don't realize it...
The compiler read your println statement and converted the '\u005c' to '\'. This illegal character (see below) terminated reading of the line. As a result, the compiler didn't see the trailing single quote and the trailing parenthesis.
Since it had read the first single quote, but not the second, it issued the error "unclosed character literal".
You should have also received an error "')' expected" for the same reason. Did you?
(3.10.4 Character Literals, The Java Language Specification, notes that single character literals of '\' are not legal and will result in a compile-time error, as it did above.)

Similar Messages

  • I have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

    i have problem with fonts for my site, i have used "Lucida sans unicode " family for certain texts. it shows perfect in mozilla 3.5 and mozilla 4. But the font not supporting in mozilla 5.0? please help me

  • How to get the unicode escapes for characters outside a characterset

    Hi!
    I'm tryiing to edit into a RTF file and have been fairly successful so far. But living outside the U.S i need some characters outside ASCII. Those characters are supposed to be escaped as unicode-escapes, eg \u45. But I can't find a way to get the escapesequense for the unicode-characters that lives outside ASCII.
    I'm guessing that this is a very simple thing to do but I have not been lucky with google so far.
    So, how do I get the unicode escapes for characters outside a characterset?
    Thanks in advance
    Roland Carlsson

    I'm tryiing to edit into a RTF file and have been
    fairly successful so far. But living outside the U.S
    i need some characters outside ASCII. Those
    characters are supposed to be escaped as
    unicode-escapes, eg \u45. But I can't find a way to
    get the escapesequense for the unicode-characters
    that lives outside ASCII.You are asking about RTF and not java correct?
    As a guess....
    Unicode is 32 bit (presumably you are not using the newest one.) Thus it requires a 32 bit representation. Thus \u45 actually is the same as \u0045. Thus something like \u1e45 would probably work.

  • How to do the Unicode Check for Business Objects ?

    Hi all,
    How to do the Unicode Check for Business Objects ?
    Note: All business Objects are stored in BOR (Business Objects Repositary)
    Thanks in advance
    Sri..

    Hi..
    i have used the  UCCHECK  transaction for some business Objects
    For some business objects it is showing that No Unicode Errors found Ex: Z00MARA
    and for Business Objects it showing the message like : There is no program corresponding to this selection.
    Why system is showing like this ?
    Thanks in advance
    Sri..

  • Where on the Mac can I find the math symbol for Pi. Ie. what is the Unicode number for Pi.?

    Where on the Mac can I find the math symbol for Pi?
    Ie. what is the Unicode number for Pi.?
    I am using system 10.6.8
    Jubbjubb.

    Jubbjubb wrote:
    Where on the Mac can I find the math symbol for Pi?
    On the US keyboard layout, alt/option + p = π

  • Unicode mode for Planning applications

    Is Unicode mode for Planning applications allowed in 11.1.2.1? If so how do you allow it?
    Seems that it is not allowed but the documentation is ambigious, and a search on the forum does not give clear answer.

    Thanks!
    But then why does the 8-character limit apply to unicode planning application names?
    Shouldn't ticking that checkbox enable longer application names?
    What's the limit for unicode Essbase applications, 32 characters? Then one should also be able to give a new unicode planning application a 32 character long name when in the create new planning application dialogue box, given that the data source is 'unicode'.
    Edited by: Markus on Aug 4, 2011 5:06 AM

  • How we can check unicode check for function-pool.

    hi experts,
    how we can check unicode check for function-pool.
    pls tell needy.
    regards,
    praveen

    You can check the Unicode in the function group or use transaction UCCHECK

  • Unicode check for SmartForm / SAPScript

    Hi,
    How can we do unicode check for SmartForm / SAPScript? TX UCCHECK does not help me out.
    thanks !
    Chika

    Hi Chika,
    first try to find out ABAP function module name which is representing your smartforms (via TA smartforms->put your form name -> Display -> menu: Environment->Function module name). Then find corresponding function group where this function module belongs. Afterward put this ABAP function group name into TA UCCHECK.
    I believe this would work.
    BR
    m./

  • Unicode conversion for ERP

    Morning!
    In that famous OSS note about unicode conversion, the attached guides are labeled
    as NW unicode conversion guides.
    -- ERP can use the same guides?
    -- how about the unicode conversion for other products such as SM, SCM, CRM, etc.?
    Thank you!

    Hi,
    Answer to both the questions would be Yes. The conversion guides are as per the Netweaver base release for any of the applications (ERP, SCM, SRM, CRM etc).
    Eg, If converting a CRM 2005 Non-Unicode to Unicode, the guide SCP700SP<xx> would be relevant, because the Netweaver 700 SP<xx> is the base release for CRM 2005. Similarly for all applications.
    Regards,
    Srikishan

  • String Literal for ASCII Encoding

    I need to know what is the STRING LITERAL for ASCII CHAR. ENCODING in Java (as ISO_LATIN-1 has "8859_1").
    Thanks in Advance!

    import java.nio.charset.Charset;
    import java.util.Set;
    import java.util.Iterator;
    class Test {
         void m(String name) {
              Charset s = Charset.forName(name);
              System.out.println("display name= " + s.displayName());
              Set aliases = s.aliases();
              Iterator it = aliases.iterator();
              while (it.hasNext()) {
                   String x = (String)it.next();
                   System.out.println("alias= " + x);
         public static void main(String[] args) {
              if (args.length > 0) new Test().m(args[0]);
    }display name= US-ASCII
    alias= us
    alias= ISO_646.irv:1991
    alias= ANSI_X3.4-1968
    alias= iso-ir-6
    alias= 646
    alias= ISO646-US
    alias= cp367
    alias= ANSI_X3.4-1986
    alias= csASCII
    alias= ASCII
    alias= iso_646.irv:1983
    alias= IBM367

  • Unicode Literal to Unicode Character

    I have a list of all the unicode characters (00C1, 00E1, 0103, etc.).
    I am displaying their data as \u00C1 (in a java string: System.out.println("\\u00C1");)
    How would I go about converting that literal string to the actual unicode character?
    I want \\u00C1 to become the actual \u00C1 character.
    All I'm really doing right now is letting the user enter in that data and then parsing their string for all unicode specifications and then turning them into the actual unicode characters.

    char c = (char)Integer.valueOf("00C1", 16).intValue();

  • Special characters being read from the unicode file for greek language

    Hi All,
    I have a report which would upload a unicode file and then update the vendor master data accordingly.
    The file contains greek characters too.
    when the file is being read in the code, some special characters are being added up to the vendor number which is the first entry. The special characters are not included in the file , but are added up only to the first vendor number and not any other vendor numbers.
    The logic that is being used is as follows :
    TRY.
          IF unicode IS INITIAL.
            IF codepage IS INITIAL.
    *-->      For backward compatibility where this FM might be called from
    *         other dependent objects (FMs/dynamic subroutines)
    *         which donot have access to  user's input w.r.t Unicode parameters
              OPEN DATASET filename FOR INPUT
                   IN LEGACY TEXT MODE
                   MESSAGE msg
                   REPLACEMENT CHARACTER repl_char
                   IGNORING CONVERSION ERRORS
                   FILTER filter.                         
            ELSE.
    *--> System in non-unicode and Unicode Environment (Phases I and II)
              OPEN DATASET filename FOR INPUT
                   IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg
                   REPLACEMENT CHARACTER repl_char
                   IGNORING CONVERSION ERRORS
                   FILTER filter.                          
            ENDIF.
          ELSE.
    *-->  Extract File in Unicode format - Phase III
            OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING UTF-8
            MESSAGE msg
            FILTER filter.                                 
          ENDIF.
          IF sy-subrc NE 0.
            MESSAGE e001(zuni) WITH filename sy-subrc
             RAISING file_open_error.
          ENDIF.
    the unicode parameters used are : codepage = 8000.
    An early reply is most appreciated.
    Regards,
    Manu.

    Please check SAP notes for Eastern European Characters in Unicode system. and may be below code helps you
    DATA:
        ltp_bom                  TYPE sychar01,
        ltp_encoding             TYPE sychar01,
        ltp_codepage             TYPE cpcodepage.
    Processing --------------------------------------------------------- *
      TRY.
          CALL METHOD cl_abap_file_utilities=>check_utf8
            EXPORTING
              file_name         = itp_filename
              max_kb            = -1
              all_if_7bit_ascii = abap_true
            IMPORTING
              bom               = ltp_bom
              encoding          = ltp_encoding.
        CATCH cx_sy_file_open .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_open_error.
        CATCH cx_sy_file_authority .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_authority_error.
        CATCH cx_sy_file_io .
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
                  RAISING file_io_error.
      ENDTRY.
      CASE ltp_encoding.
        WHEN cl_abap_file_utilities=>encoding_utf8
          OR cl_abap_file_utilities=>encoding_7bit_ascii.
          CASE ltp_bom.
            WHEN cl_abap_file_utilities=>no_bom.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8.
            WHEN cl_abap_file_utilities=>bom_utf8.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8
                  SKIPPING BYTE-ORDER MARK.
            WHEN cl_abap_file_utilities=>bom_utf16_be.
              ltp_codepage = '4102'.
              OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
                BIG ENDIAN CODE PAGE ltp_codepage.
            WHEN cl_abap_file_utilities=>bom_utf16_le.
              ltp_codepage = '4103'.
              OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
                LITTLE ENDIAN CODE PAGE ltp_codepage.
            WHEN OTHERS.
              OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
                ENCODING UTF-8.
          ENDCASE.
        WHEN OTHERS.
          OPEN DATASET itp_filename FOR INPUT IN LEGACY TEXT MODE.
      ENDCASE.
    Edited by: Nilesh Shete on May 7, 2010 5:29 PM

  • NW 7.3 vs Unicode - Question for SAP

    Hi,
    Is it true that we have to convert to Unicode before we start the upgrade for NW BW 7.3?
    Please confirm.
    Regards,
    SC

    If your system is MDMP yes you will have to, but if your system is non-unicode single code-page system - till date SAP just mentions that a upgrade to SCP non-unicode is possible until SAP NW 7.0 EhP1 but is not recommended. Check this sap note for further details:
    73606 - Supported Languages and Code Pages
    Nothing is yet out for SAP NW 7.3.
    - Regards, Dibya

  • [JS] "InDiCode" : Unicode toolbox for InDesign (beta-test)

    "InDiCode.js" allows users to:
    - insert characters by Unicode id (or set of id's)
    - identify "special characters"
    - check available glyphs in the current font
    It's supposed to work on ID CS, CS2 and CS3.
    I hope you'll enjoy to beta-test it.
    Overview and download here:
    http://marcautret.free.fr/geek/indd/unicode/part3.php
    Thanks for your feedbacks!

    Thanks Peter,
    As you see, the dropdown list is just a predefined collection of ranges which make easier the inspection of usual Unicode sets. The "javascripter" is highly requested to customize these sets for his own convenience. Alternately, it's possible to stipulate any range directly from the Unicode field, using comma separated values and/or dashes for Unicode segments.
    You have a point : the glyphs/ranges available in the current font are certainly documented in the font file itself. The problem is that I don't know how to extract and parse this information! For the moment, the glyph-checking process is "empirical", thanks to the Dave Saunder's outline-trick:
    http://jsid.blogspot.com/2006/03/what-and-wheres-that-glyph.html
    [Precision: SpecialCharacters names and id's exposed from the script are also hard-coded, despite of your great method using the array SpecialCharacters.reflect.properties. The point is that I wanted InDiCode to be InDesign CS-compatible.]
    I rely on users feedbacks and requests to improve and extend the process in the future. InDiCode has been primarly designed as a library and the script hosts a lot of "sleeping" features (exporting methods, UTF8 translation...).

  • Unicode issue for keyword SEARCH

    Hi All...
    In a report keyword SEARCH is used to find entry in internal table. basically this will find any value in internal table and will return sy-tabix as line number where the value exists.
    Syntax:     SEARCH itab FOR seek.
    where itab is internal table and seek is variable which can contain any value to be searched in itab.
    When i set 'Unicode check active' attribute in program attribute, while activating program i am getting error as: <b>Table "KEN3" must have a character line type (data type C, N, D, T, or STRING).</b>
    When i try to add additons In byte mode and in charecter mode, i am getting incompability errors.
    Is there any solution/alternative for this error. I am trying to make my program unicode compliant.     
    TIA,
    Agasti.

    Hi
    I think ur itab is having all the fields of the table
    Because of MANDT only it is generating the error declare ur itab below.
    I wrote the code like this and it is not generating any error
    Kindly have a look.
    data : begin of it_mara1,
           matnr like mara-matnr,
           meins like mara-meins,
           BLANZ like mara-BLANZ,
          end of it_mara1.
    search it_mara1 for 'new'." in character mode.
    Regards
    Shiva

Maybe you are looking for

  • Creative Zen Touch Vs. Mi

    I am looking for a new mp3 player to buy, and would like to get a creative one but I am having a few problems, hoping some of you could help me. On the tocuh version (20gig) is there ANY way that you could make it so you can use it as an external dri

  • Dispute Case - Additional Documents Attachment

    Hi Experts During the creation of dispute Case we have a requirement  to Store attachments ( PDF, XLS or Word files) of customer business with Dispute case itself. Can we utilize the Note functionality or Services for object?   In either cases where

  • Could not receive classifications from UDDI server. Please change the UDDI.

    Hello:    Im trying to connect from CE in Visual Composer to the     UDDI url: http://xi.esworkplace.sap.com:50200/uddi/wsdl/uddi_v3_service.wsdl    but when I try to explore advance search in VC it shows me the following error:    Could not receive

  • Can not get firefox to work after downloading 4 then going back to 3.6

    Firefox had to reinstall adobe reader and now firefox will not open nothing works and 4 is just plan crap

  • Report programming using OOABAP

    hi sdns, I have learnt OOABAP. and now i am trying to implement those concepts in report programming. can anyone provide me some good stuff for practicing them. I want Excercises or else if any one have PDFs do mail me to [email protected] Please do