Easiest way to create a string with a unicode supplimentary character

In my code I had previously been declaring some strings such as:
String s = "\u1234";Now I have gotten to a point where I want to use a supplimentary unicode character like this:
String s = "\u12345";This, however, does not work since Java only allows for characters in the range: 0000 - FFFF.
I've been reading over this whole codepoint thing in the Character docs but I'm still confused. What's the easiest way to make a string that contains the unicode character U+12345 (just an example number)?

This article here:
http://java.sun.com/developer/technicalArticles/Intl/Supplementary/
says <quote>For text input, the Java 2 SDK provides a code point input method which accepts strings of the form "\Uxxxxxx", where the uppercase "U" indicates that the escape sequence contains six hexadecimal digits, thus allowing for supplementary characters.</quote>
I believe it is referring to Java 5, although I don't see where it says that. However if you are dealing with supplementary characters it might be a good idea for you to move to Java 5 because of its improved support for them.
PC&#178;

Similar Messages

  • Creating a String with repeated chars

    Is there a way to create a String with N repeated chars without using a loop?
    I want to create something like "aaaaaaaaaa" without having to do:
        StringBuffer s = new StringBuffer();
        for(int i = 0; i< 10; i++){
          s.append("a");
        }

    Ahh, Groovy.
    #! /usr/bin/groovy
    s = 'a' * 10
    assert s == 'aaaaaaaaaa'http://groovy.codehaus.org/
    :o)

  • What is the easiest way to create and share photo/video gallery or slide show with family via web?

    I am brand new to Lightroom (converted from Aperture) and made the conversation mainly because I thought that Adobe would bring many more options and because Apple has discontinued development of Aperture. Part of the reason I am asking this question is because there is so much information out there on this subject that it is overwhelming and actually is making it difficult to determine the best way to simply arrange my photos/videos into a slideshow and then to publish somewhat of a gallery or slideshow to show family and friends in other states. 
    I do not like publishing things to Facebook/etc.  Too public.  I just want a simple, efficient way to create a gallery with music and have a link I can send to my family (they all live in another state). 
    Any help narrowing this down for me would be greatly appreciated!
    Thanks,
    RJ Chesterton

    an airport extreme base station would do the job, it has several ethernet ports for use by non-wireless devices, allows connecting a usb printer to share, and supports both pc and mac via wireless
    config is via a dedicated set-up utility
    however, you can always connect the printer to the mac or pc and share it that way, so having this support in the base station isn't essential
    a much cheaper unit from netgear etc. (such as the netgear wgr614) would offer the other features, be far more compact, and allow configuration via web browser, which might be a factor if you need to give 'remote support'
    i've got both airport and netgear wireless devices, imho for non-technical users the netgear is simpler than the airport due to the web browser configuration

  • I own a MacBook Pro. Can someone advise me the easiest way to make a movie with existing photos on my laptop?

    I own a MacBook Pro. Can someone advise me the easiest way to make a movie with existing photos on my laptop? I have made some movies on this laptop but find it too cumbersome. Thanks.

    Hi sato gato,
    The page linked below serves as a good starting point for creating slideshows in iPhoto.
    iPhoto Help - Make a slideshow
    http://help.apple.com/iphoto/mac/9.6/#/pht5470fe9b
    Regards,
    Allen

  • Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?

    Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?
    Thanks!
    -Adrian

    the old apps are on my computer but they have had upgrades since they were put on the ipod originally.  you think you would get a warning about this when you restored. I was not worried about losing the progress of the apps but i would have been worried about the app it self!!!!!

  • What is the easy way to create a crossword with InDesign CS5 for a interactive pdf?

    I mean I want to create a pdf magazine and i like to include a crossword. I read somewhere that one way is create a crossword with an external software and include it in the ID project but I don't know any crossword software and if I add in my ID project, I only need to export like a interactive pdf? I would like that the users can use the crossword in online version.
    Regards from Lima, Perú

    Hi.
    I'm not sure about what to you mean. But I create first the crossword with Excel, I mean to put the words in the right order and the questions and/or cue too. Then I create a table in InDesign and format some cells with black background and some borders. I upload both captures, from Excel and from InDesigne. Then with Adobe X Pro I create a form, so I can create singles inputs for the crossword.
    I hope i understand your question.
    Regards from Lima, Perú

  • How to create a String with a specific size?

    how to create a String with a specific size?
    For example I want to create different Strings with the size of 100 , 1000 or 63k byte?

    String are immutable so just initialize it with the number of characters you want.
    You might want to look at java.lang.StringBuffer and see if that's what you want.

  • What is the Easiest way to create a playlist?

    What is the easiest way to create a playlist without going through all 1500 in my iTunes?  I know some artists I want all their songs.......others I don't.

    I have WMP on my computer and know you can quite easily make playlists within it.
    Then if you connect your player to the computer and drag and drop the playlist into the sync
    screen you should then be able to transfer it to the player.
    Not tried this way as I always use Zen Media Explorer for making playlists.
    Gi've it a try-you have nothing to lose.
    Best of Luck
    ZENFLASH

  • What is the easiest ways to create motion menus in Encore CS5 w/ After Effects CS5

    Hello,
    What is the easiest way to create motion Menus in Encore CS5?  I'm creating a motion menu in after effects CS5 and will import as a menu in Encore, but I want to keep the animation, while the buttons will navigate you to the appropriate timelines.  I want to keep the animation going throughout the duration of the menu?
    Thanks,

    Thanks Stan.  Big Help
    Date: Fri, 10 Jun 2011 20:07:23 -0600
    From: [email protected]
    To: [email protected]
    Subject: What is the easiest ways to create motion menus in Encore CS5 w/ After Effects CS5
    The first link is Encore CS5 help. It is a good beginning.  I'm not sure if the tutorial it links to is the same as my second link.  The AE help link below is also useful.
    CS5 allows creation of buttons in AE, but for plain navigation options, I think it is just as easy to add in Encore or Photoshop.
    http://help.adobe.com/en_US/encore/cs/using/WSA5513911-0AD1-440c-BDAD-2E0E806B425E.html
    Here's an adobe tutorial on using AE for EN menus:
    http://www.adobe.com/designcenter/video_workshop/?id=vid0258
    From the After Effects help:
    http://help.adobe.com/en_US/aftereffects/cs/using/WS3878526689cb91655866c1103906c6dea-7e45 a.html
    >

  • I'd love to see a way to create Smart Playlists with a raw (SQL-like) lang.

    I'm not sure if this is the proper place to put a request, but if any of you developers are out there looking for ideas here's one I (and I'm sure many other power users) would love.
    Give is a way to create smart playlists with nested logic or using an SQL-like query language. Currently when matching multiple properties of songs we have an all-or-nothing approach to AND's and OR's which is quite limiting if you want to do something like.
    "All songs with a rating of 2+ and a genre of electronica or metal"
    Currently the only way to do this is to first create a smart playlists for all songs with a genre of electronica or metal, and then create a second playlist which is songs with a rading of 2+ and in the first playlist.
    While this trickery will allow you to achieve any goal you could imagine, it get's quite messy very quickly.
    It'd be much easier (for someone like me) to just be given a raw interface that would allow me to do something like
    [Songs matching the clause]
    rating > 2
    AND
    genre = 'Metal'
    OR
    genre = 'Electronica'
    AND
    artist 'Iron Maiden'

    Great idea.
    Tell Apple -> http://www.apple.com/feedback/itunesapp.html

  • What is the easiest way to create and manage very big forms?

    I need to create a form that will contain few hundred questions. Could you please give me some advise on what is the easiest way to do that? I mean for example is it easier to create everything in Word (since it is easier to manage) and than create a form based on that?
    My concern is that when I will have a very big form, containing different kinds of questions and with many scripts, managing it during work will be slow and difficult, for example adding a question in the middle of the form which would require moving half of the questions down which could smash the layout etc.
    What is the best practise for that?
    Thanks in advance

    Try using Table and Rows for this kind of forms. These forms will have the same look throught with a question and and answer section..
    In the future if you want to add a new section, you can simply add rows in between..
    Thanks
    Srini

  • Creating a string with hiearchical data

    This is being done in Crystal 8 will all updates applied.
    I have a database with records that are linked to a series of "folders" that are hierarchical in nature as shown below:
    Folder 1:
         Folder 1.1
              Folder 1.1.1
    Folder 2
        Folder 2.1
    All of the folders can have data records attached to them.
    The database represents the folder structure in a table with the following attributes:
    Folder ID   (integer)
    Folder Name (String)  (such as "Folder 1"
    Folder Parent ID (integer)
    (other non-related fields)
    If the folder is at the root level, then the value in Folder Parent ID is 0, otherwise, it is the Folder ID of the parent folder.
    I need to be able to create a string field that displays the path for any given folder that I can insert into a group header or footer, or into a report header if the report deals with records in a single folder.  Desired format for the  string is: 
    "Folder 1> Folder 1.1> Folder 1.1.1"
    I need to be able to display at least 6 levels of folder indentation.
    I have tried several ways to create a formula that will reliably produce the desired string, and can get close, but cannot completely address the problem.  My most successful approach was to put multiple instance of the table into the report and link the Folder Parent ID of one level to the Folder ID of the next level down and then use the data to build the string with a formula like this:
    Local StringVar Result := {portfolio_master.portfolio_name};
    local stringvar ExitLoop := "1" ;
    if  ExitLoop = "1" then
        Result := {portfolio_master_1.portfolio_name} + "> " + Result
    else
        ExitLoop := "0";
    if {portfolio_master_1.parent_id} NE 0 AND ExitLoop = "1" then  // NE replaces Crystal not equal symbol which will not show
        Result := {portfolio_master_2.portfolio_name} + "> " + Result
    else
        ExitLoop := "0";
    if {portfolio_master_2.parent_id} NE 0 and ExitLoop = "1" then
        Result := {portfolio_master_3.portfolio_name} + "> " + Result
    else
        ExitLoop := "0";
    if {portfolio_master_3.parent_id} NE 0 and ExitLoop = "1" then
        Result := {portfolio_master_4.portfolio_name} + "> " + Result
    else
        ExitLoop := "0";
    if {portfolio_master_4.parent_id} NE 0 and ExitLoop = "1" then
        Result := {portfolio_master_5.portfolio_name} + "> " + Result
    else
        ExitLoop := "0";
    Result;
    This formula works so long as the folder in question is exactly 5 levels deep.  Changing the nature of the links(inner join, left outer join etc.) between the instances of the table in the Database Expert changes the data that is visible, but I can't find a combination that will show ALL of the needed information for all of the folders. 
    I understand that this is a brute force approach, and that there must be a different way to skin the cat.  My preference would be to "walk the tree" with a loop structure, but I don't see any way to do the needed data look up within the loop.
    Any suggestions would be greatly appreciated!
    Thanks,
    L. Jasmann
    Edited by: ljasmann1 on Jun 23, 2010 9:09 PM
    Edited by: ljasmann1 on Jun 23, 2010 9:33 PM

    I have been working to adapt the code provided above to my application.  Although I have worked with Crystal for quite a while, this is the first time that I have attempted to use SQL in Crystal... and it is just not working.. probably because I am no doing something very basic.
    Here is  the code as currently set up in the SQL Formula Editor.  Only major difference from the code provided above is that the ID fields are integers instead of strings, and the field that I want to print out is a string field separate from the ID fields....  I have substituted the field names from the table I am referencing for the ones in the code above.  The table that I am using has been selected using the Database Expert.
    DECLARE @Value int, @pf int, @FolderPath VarChar(MAX)
    SET @Value = "portfolio_master"."portfolio_id"
    SELECT @pf = "portfolio_master"."parent_id" FROM portfolio_master WHERE "portfolio_master"."portfolio_id" = @Value
    SET @FolderPath = "portfolio_master"."portfolio_name"
    WHILE @pf <> 0
    BEGIN
    SET @Value = @pf
    SELECT @pf = "portfolio_master"."parent_id" FROM portfolio_master WHERE "portfolio_master"."portfolio_id" = @Value
    SET @FolderPath = "portfolio_master"."portfolio_name" + ' > ' + @FolderPath
    END
    SELECT @FolderPath AS FolderPath
    When I test the SQL statement it errors out on the very first statement (the DECLARE statement).  If I substitute a different statement in front of the DECLARE statement, it errors on that statement.
    Here is the error that I get back. The database is using MS SQL Server.
    Error in compiling SQL Expression:
    Failed to retrieve data from the database.
    Details:  ADO Error Code:  0x80040e14
    Source:  Microsoft OLE db Provider for SQL Server
    Description:  Incorrect syntax near the keyword u2018DECLAREu2019,
    SQL State:  42000
    Native Error:  156 [Database Vendor Code:  156].
    Any pointers would be greatly appreciated...
    Thanks,
    Larry Jasmann

  • What is the easiest way to create a 3D effect in Motion 3?

    I would like to play around with 3D in Motion 3 I am unclear as how to use this feature. How do I create a simple 3D project?

    Easiest way would probably be to open one of the 3D templates (File > Open Template) and start to break it down. The Help menu includes a PDF that provides a good overview of how 3D works in Motion as well.

  • Using RH10 - what's the easiest way to create and save HTML code as a snippet for later re-use?

    I am using RH10 to maintain and update several WebHelp projects for customer-facing Internet applications. I am noticing inconsistencies in css and html so I would like to create several snippets for later re-use.  My wishlist, so far:  FAQ page with internal bookmarks, product image with table of callouts, and basic page template with corporate header and footer. What's the easiest way to save / export a page that I want to use later as a snippet? Thank you.

    Have you thought about using the Resource Manager?

  • Easiest way to access shared album with Lion only

    one of my friends is still using Lion only and she's want to make a photobook on her Mac with the pictures from a shared album (not photo stream) that I created. She also has an iPhone and iPad that have iOS6 (she's willing to update to iOS7 if that helps) and thus can view the shared album.
    under this situation, what's the easiest way for her to get the pictures over to her Mac? There are over 100 photos so email is something she wants to avoid. Apps that are not very expensive (<$10) is ok if they can do the job quickly. and high resolution preferred (doesn't have to be the full resolution)
    and she's using aperture to create the photobook, not that i think it's too relevant to the question
    thanks much in advance.

    You might be thinking of Crossover. Not sure if Windows Media Player works under it, but their website has info on requested and working apps.
    Best of luck.

Maybe you are looking for

  • Single Outlook mailbox for multiple users on the same PC

    please now see below. Thanks

  • Button in BEx Analyzer

    Hi, I need to use a button in BI 7.0 BEx Analyzer in a workbook with the function similar to the context menu "Back" in BEx. What are the command and parameter settings for this button? Thanks.

  • Why I have a error while deploying a BPM Proyect in a BPM Enterprise?

    Hi everybody: I am deploying a BPM Proyect in a BPM Enterprise and when I upload the proyect, this error is showed: Can not publish the project. Compile Error Process: Error: Devolver a caja - The activity "Devolver a caja" does not have a screen flo

  • List services as colums

    hi i'm using this code from this forum https://social.technet.microsoft.com/Forums/windowsserver/en-US/75b3dcde-af1e-4d87-9eff-ce923b090ef8/get-services-from-remote-computers $array = @()             foreach($i in (gc c:\computers.txt)) {            

  • Adobe Reader won't display PDF in IE Browser Window

    I am using Adobe Reader XI and Internet Explorer v. 11.0.9600.17280. I have tried uninstalling and re-installing Adobe.  I've also checked IE Add-Ins and all Adobe Reader Add-Ins are enabled. However, you're poorly written software STILL WILL NOT dis