Converting 8 bits to unicode?

how do i convert 8 bit chars to unicode?
thnaks in advance
peleg

You have to prevent sign extension on the (signed) 8 bit byte:   byte b= ...;
   char c= (char)(b&0xff);kind regards,
Jos

Similar Messages

  • [Bug] iOS 5.1 missing covers after "convert higher bit rate songs to" with iTunes 10.6

    All my music has covers in iTunes Library. But after i updated to iOS 5.1 they are missing on my devices.
    It happens every time i check "convert higher bit rate songs to 192/256 kbps" on iTunes 10.6 (40) on my Mac.
    On the screenshot (iPad 2010 running iOS 5.1) Bon Iver's album copied by default settings, and Coldplay's album converted to 192 kbps.
    BTW on my old iPhone 3G (iOS 4.2.1) all covers are OK even when convert feature is ON.

    I have solved it by unchecking (momentaneously till apple fix it) the "Convert higher bit rate songs" option.
    I know that it need more space but i don't have too much music synced so.. it isn't a problem for me..
    I have this problem because i'm using the "manually manage music and videos", i'm not using the auto sync option because iTunes always try to copy my new apps to my mac even having that option unchecked...
    Now we have iCloud... i don't know why apple still have not deleted this feature!
    Anyway... i have solved it momentaneously.
    Apple.... come on!

  • ITunes 7 and Shuffle:"Convert higher bit rate songs to 128kbps AAC" broken

    This has become unusably slow in iTunes 7. Is this fixed yet? Does anyone have a workaround?

    I have the same issue but with my iPad 2 and iPhone 3GS. Songs play fine in iTunes. If is uncheck Convert higher bit rate songs to 128kbps AAC the no more scratching sounds on my devices.

  • HT1535 How do i convert higher bit rate songs to 128 kbps AAC

    I am trying to sync selected songs to my Iphone 5 from my itunes library. I have recently taken my computer to be fixed and all of my music documents were taken off but the files were replaced shorty after. I re-downloaded itunes and it is up to date. My iphone is also on the ios 7.0.4. Whenever i plug my phone in to be synced it never goes past the "waiting for changes to be applied" step. While my phone was still connected i went to the "On this iphone" tab and clicked the autofill button and a message came up that said i must convert higher bit rate songs to 128 kbps ACC to allow the songs to be copied to my iphone. How do i do this? Also, once this is done will it solve my problem with transfeering my songs from my library to my iphone?

    Sid,
    With the device connected, click the Summary tab and you will see the "Convert higher bit rate..." option.  Set it to 128.  See picture below:

  • Using the "Convert higher bit rate songs to 128 kbps AAC" feature...

    I recently discovered the "Convert higher bit rate songs to 128 kbps AAC" feature and used it to copy my entire 70 GB music library to my 64GB iPad. The music library now occupies only 45 GB. Awesome!!!
    Unfortunately, the whole process took well over 24++ hours on my quad core Windows 7 computer (takes about 6 seconds per track). Questions:
    1. Is it possible to speed up the process? Even though I am using iTunes 64-bit version, it seems that at no point is more than a single core being used at 33%. Seems to me like overall 8% of the CPU (33% / 4) capacity is being used for the conversion and 92% is being left idle. Is this just bad programming or is there anything I can do to speed up the process? Others see similar problems?
    2. Now I have already started dreading the day, I need to restore my iPad (e.g., when OS version 4 becomes available). I would hate to have to do this process all over again. Should I need to restore my iPad, is there anyway I can force iTunes to back up the 128-bit AAC versions on my computer and restore it up from there?
    Any insights into both these questions will be deeply appreciated.
    Cheers,

    ed2345 wrote:
    malus_domestica wrote:
    Thanks for the response.
    So, I am wondering why iTunes uses only 8% of the processor power in converting the songs.
    Possible reasons not to grab more of the CPU power (1) maybe the process is I/O bound due to all the writing, and is not processor limited? (2) since conversion is almost always a background program, and the user will typically have other things going on, maybe it intentionally limits CPU use?
    I ran a few quick experiments (out of curiosity) and think the answer is #2. No apparent technical reason but potentially a limitation introduced by Apple's engineers to maintain a good user experience (for some people at least). I fired up 4 instances of dbpoweramp and ran multiple conversions and found that the process goes faster than what iTunes can do by an order of magnitude. With luck, someday Apple will have an option for users to select how much of processor bandwidth to be allocated for the conversion.

  • What does convert higher bit rates songs to 128 kbps mean

    what does convert higher bit rate songs to 128 kbps mean?

    pattyfromsyracuse wrote:
    what does convert higher bit rate songs to 128 kbps mean?
    Some people, myself included, import their music from original audio CDs. When doing so I choose to import using Apple Lossless format so as to keep the full original quality of the audio CDs (this is after all why it is called Apple Lossless format in that you are not losing any quality).
    The drawback of doing this is that the music files take a lot more disk space than a lossy format like MP3 or AAC. This is these days not a problem on a computer as hard disk space is now cheap an plentiful but it can be a problem on a flash memory based music player like the iPod Shuffle, iPod Nano, iPod Touch, or iPhone as these have far less capacity.
    Therefore Apple now let you turn on this option to automatically convert from Apple Lossless to AAC when syncing to one of these music players. As a result on your computer the music is still kept in the full lossless high quality format, but is converted and transferred as a much smaller but slightly lower quality for use on these music players. As with an iPod you are not listening in a quiet room with high quality speakers you will not really notice the difference in quality.

  • I am tying to add music from a disk i imported but it says "convert higher bit rate songs to 128 kbps AAC"? How do i do this?

    How do i convert the bit rate to 128 kbps? Having difficulty figuring that out

    Add to what?  An iOS device (of which you make no mention)?
    https://discussions.apple.com/message/18341150 (picture for iPad)

  • Want to convert 32 bit assembly code to 64 bit assembly

    hi
    Friends
    I want to convert 32 bit assembly code to 64 bit.
    extern "C" long sparc_atomic_add_32 (volatile long* p, long val);
    static void asm_code()
    asm(".align 8"); \
    asm(".global sparc_atomic_add_32"); \
    asm(".type sparc_atomic_add_32, #function"); \
    asm("sparc_atomic_add_32:");
    asm(" membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");
    asm(" ld [%o0], %l0"); // l0 = *p;
    asm(" add %l0, %o1, %l2"); // l2 = l0 + val
    asm(" cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);
    asm(" cmp %l0, %l2"); // does it match
    asm(" bne sparc_atomic_add_32");// if not try again
    asm(" nop"); // delay slot filler
    asm(" add %l2, %o1, %o0"); // set return code
    asm(" membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");
    asm("retl");
    asm("nop");
    }

    mickeyanton wrote:
    Adobe recommends going to a 32 bit Lightroom
    Adobe specifically recommended that to you personally?
    It makes far more sense to install 64 bit Lightroom on a 64 bit operating system.
    What problems are you having with 64 bit Lightroom?

  • Convert Hexadecimal NCRs to unicode characters

    I have Hexadecimal NCRs in comments while importing comments from the 3b2 application. How can this be converted to appropriate characters using acrobat javascript.
    For example: The comment contains (&#x000D) which should be converted to the appropriate unicode character. 

    I may be wrong, but I think you would use String.fromCharCode to convert a UCS-2 code into a string. So you then have to parse your string to process any escapes in it, and call that method.

  • Convert 16 bit tiff?

    I am trying to recover disk space and have been using the DNG Converter to save 10-20 percent on my Canon cr2 files
    I also have over 256 Gigs of 16 bit tiff files that I have outputted over the years from the HDR program Photomatix Pro,
    When I originally saved them I saved them at a bit depth of 16 so I would have more to work with for the final editing.
    So, on average the tiff  files are each about 100 megs, I am guessing that as a DNG , it would shrink that by about 75%
    DNG converter doesnt like the 16 bit tiffs and skips them.
    Is there another piece of software that can convert 16 bit tiffs to DNG
    OR
    Is there another piece of software that can batch convert 16 bit tiffs to 8 bit so I can dump  then them into the DNG converter without having to do each file one by one.
    Thanks
    Todd McIntosh

    I have not used it before to convert 8-bit Tiffs.
    I am only assuming it does so, because the program pulls the tiff files into the cue when you have them in the folder you are converting.
    When the program goes to convert them (16 bit tiffs) it gives me a status of ...
    "there was an error parsing the file"
    Perhaps I am incorrect in assuming the results would be different with an 8 bit Tiff.
    Hmmmm,
    Todd

  • When I Tick Convert higher bit rate songs to 128kbps and press sync it says are you sure you want to remove apps. Help please

    Hi, I recently put music on my ipad (manually, I do not sync because I dont like leaving music in my itunes) I realised they take up a lot of space because of the bit rate so I went into iTunes and pressed "Convert higher bit rate songs to 128 kbps AAC" Then I pressed apply and I got the message "Are you sure you want to remover 113 apps......." I have checked and sync Apps is unticked so my question is why does it say this and is there a way around it. Also if i tick convert to AAC will it convert the songs already on my ipad or just ones I add from now on.

    SeasiderChris wrote:
    Hi, I recently put music on my ipad (manually, I do not sync because I dont like leaving music in my itunes
    Why not? That's what it is for.
    So Restoring your iPad when it crashes and losing all your music is acceptable to you?
    Then I pressed apply and I got the message "Are you sure you want to remover 113 apps......." I have checked and sync Apps is unticked so my question is why does it say this and is there a way around it.
    Since you now want to sync the iPad and have told it you do not want to sync apps, it will remove them all.
    Check the apps you want on the iPad.
    Also if i tick convert to AAC will it convert the songs already on my ipad or just ones I add from now on.
    It will only convert new songs added to the iPad.

  • Convert higher bit rate songs?

    This is an option on the device screen every tme I sync my iPod touch - now at OS v6.
    Should I click on it and convert? And if so, to which kbps setting?

    On-the-fly conversion is only available on the iPod shuffle. The iPod shuffle (probably because of it's limited capacity) has the option to "Convert higher bit rate songs to 128 kbps AAC". This option is not available for any other model iPod. Syncing anything larger than a shuffle and converting in the process would be a very slow process. For the larger iPods the files have to be converted in iTunes first or indeed have to have been imported in a compressed format prior to transfer.
    There are a couple of ways to handle this, one is to convert the songs in your library and put them in a playlist to sync the iPod from, the other is to have a second library of compressed songs and sync the iPod from there:
    iPod - Syncing Music
    Using multiple iTunes libraries -Mac

  • Need conversion mechanism for converting 24 bit image to 16 bit

    In my java project I need to convert 24 bit image to 16 bit image. I don't have any clue. Please provide me the option to implement it.
    Thanks,
    jai

    That doesn't tell me much, and I know what you're talking about. I doubt that it tells the OP anything useful whatsoever.Sorry EJP, it was a mouthful I know. Maybe this will help instead, a ColorConversionOps class to work on *32 bit > 16 bit > 32 bit colors*. To help clarify where the 16 bit color input and output goes, some of the methods return or require parameters of type short. Also take notice the bitmask for variables of type short vs the bitmasks for int. AND pay particular attention to the unsigned right bit-shifting of the most-significant-digit.
    public class ColorConversionOps
      public static short convert32_16(int rgb) {
        int a = ((rgb & 0xF0000000) >>> 16);
        int r = ((rgb & 0x00F00000) >>  12);
        int g = ((rgb & 0x0000F000) >>   8);
        int b = ((rgb & 0x000000F0) >>   4);
        return (short)( a | r | g | b);
      public static int convert16_32(short rgb) {
        int a = ((rgb & 0xF000) << 16);
        int r = ((rgb & 0x0F00) << 12);
        int g = ((rgb & 0x00F0) <<  8);
        int b = ((rgb & 0x000F) <<  4);
        return (a | r | g | b);
      public static void printRGB_32(int rgb) {
        System.out.println("a="+((rgb & 0xFF000000) >>> 24));
        System.out.println("r="+((rgb & 0x00FF0000) >>  16));
        System.out.println("g="+((rgb & 0x0000FF00) >>  8));
        System.out.println("b="+ (rgb & 0x000000FF));
        System.out.println();
      public static void printRGB_16(short rgb) {
        System.out.println("a="+((rgb & 0xF000) >>> 12));
        System.out.println("r="+((rgb & 0x0F00) >>  8));
        System.out.println("g="+((rgb & 0x00F0) >>  4));
        System.out.println("b="+ (rgb & 0x000F));
        System.out.println();
    }Now to make the conversion from 32 bit color to 16 bit color and back. NOTICE there willl be a loss of precision -- just like someone else has already said.
    public class Test
      public static void main(String[] args)
        int rgb = 0xFFFFFFFF;
        ColorConversionOps.printRGB_32(rgb);
        //a=255
        //r=255
        //g=255
        //b=255
        rgb = ColorConversionOps.convert32_16(rgb);
        ColorConversionOps.printRGB_16((short)rgb);
        //a=15
        //r=15
        //g=15
        //b=15
        rgb = ColorConversionOps.convert16_32((short)rgb);
        ColorConversionOps.printRGB_32(rgb);
        //a=240
        //r=240
        //g=240
        //b=240
    }And now we see, the reason 16bit color is so unpopular to the rest of the world, but not for us here!

  • Convert 256-bit image to one-bit

    I want to convert 256-bit bmp image to 1-bit.So please help me.

    armalcolm wrote:
    OK here's a frameworkUmm... Drawing onto a BI of TYPE_BYTE_BINARY should achieve this in just a few lines. The API says
    When color data is stored in an image of this type, the closest color in the colormap is determined by the IndexColorModel and the resulting index is stored. Approximation and loss of alpha or color components can result, depending on the colors in the IndexColorModel colormap.
    Of course, if this is homework then OP will probably be required to reinvent the wheel.
    db

  • Converting a character to Unicode

    Hello, im a first year java student and am currently taking a class in java where my teacher refuses to teach...........
    anyways, nuff bout my sob story, i was wondering what the line of code was that is used in converting a single character into unicode. Can anyone help?
    (Yes im well aware i suck at java, thats why im still learning ;) )
    Thanx in advance.

    I wrote this a while ago...see if it helps
    * Written by: Evans Anyokwu
    * Date : 28-Feb- 2002
    * Purpose : Helps convert numbers to various formats
    * import the java IO to enable the use of the streams
    import java.io.*;
    * The class decleration "Converter class"
    public class Converter
    public static void main (String [] arges) throws IOException
    * Making use of the BufferedReader class to get the
    * input from the keyboard.
    java.io.BufferedReader keyBoard = new java.io.BufferedReader (
    new InputStreamReader (System.in));
    * Prompts the user to enter anything to be converted.
    System.out.print ("Enter a string: ");
    * Get the user input as stream from the keyboard.
    String entered = keyBoard.readLine ();
    * Loop throught the input and select the char at every
    * point
    for (int i = 0 ; i < entered.length () ; i++)
    char c = entered.charAt (i);
    * Print the char at (i) and convert it to a unicode.
    //System.out.println (Integer.toBinaryString (c));
    System.out.print ("\\u00" + Integer.toHexString (c));
    //System.out.println (Integer.toOctalString (c));

Maybe you are looking for

  • File and Printer Sharing Problem with WRT54G

    I am currently having problems sharing files over my network. My setup consists of: 3 laptops (wireless) 1 desktop (wired) WRT54G V6.0 router with firmware version 1.00.9. All of the computers have File and Printer Sharing enabled, unique names, and

  • Can not print text file.

    I have a problem since I upgrade to 10.6.7. All text file, including docx, pdf, and so on, can not be printed. Only the image file can be printed correctly. Here is a report: Process: cupstomcdufr2 [7642] Path: /Library/Printers/Canon/UFR2/Cores/cups

  • I suddenly can't connect to printer on wireless home network.

    I have an Officjet Pro L7680 and we just had a new cable company installation in our house. We have 1 desktop and 2 laptops. All three share this printer and we had no problems. Since the install, 1 laptop won't connect to the printer. The cable co.

  • Iweb is not publishing

    Hi, I created my secind webpage exactly as the first one and when I tru to publish it it give me an error. I use the same hosting company and everything looks the same. Nobody seems to know why it's not working. The only answer that I got was from th

  • Problems deploying a simple Infobus Applet

    Hi, I am testing the infrastructure required to build an Infobus Applet for our Web-based application using the Business Component Framework in JDeveloper 3.0. I have created a simple project based on the Scott schema, which uses the Java Business Ob