• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

UTF-8

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Here i need your help to understand the concept.
I know that java's char data type uses 16 bit Unicode encoding and String class contains acollection of java char. i also know that UTF encoding uses as many bits as needed to encode a character: fewer bits for smaller alphabates, more bits for the larger Asian alphabates.( RHE)
Now i got confuse or i should say i could not understand properly when i was reading Exam cram.

The UTF-8 encoding system neatly bridges between the world of 7-bit ASCII and 16 bit Unicode.
A single character may end up encoded in one,two or three bytes.
Here i am totally blank i have no idea what is this UTF-8 encoding? why do we need it ? how is it different from 16 bit unicode ? does '8' in UTF-8 stand for 8 bits?
i would really appreciate your help and effort to explain it to me.

regards
vivek
 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
some one please help me!
vivek
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answered over in Marcusville.
 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi jim,
I am back with some doubt here. i know java uses 16 bits unicode to represent a character. does java use UTF-8? or is there a way to tell java that u wanna use UTF-8? are there any other languages that use UTF-8?
please help me.
vivek
NOTE: i did post same message for u on marcus site.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic