• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UTF-8, Unicode

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I have some problems - still with internationalization:
1)What is the difference between UTF-8 and Unicode? is it the same thing?
2) how to set all necessary headers, @page directives etc. to enable the unicode encoding on the webpage?
3) when I use some bean, and launch some bean methods with String parameters, they're converted to a different codepage, how to avoid this?
4) Do all the browsers support Unicode or UTF-8?
This is very urgent, thank you in advance
Rafal Chmielecki
TC:Reaktor
Warsaw, Poland
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i don't know all the answers but UTF is unicode 8 bit (i byte) and UTF 16 is 16 bit (2 byte) they are the default for most browsers. UTF-8 is a good encoding scheme when your documents are primarily in the english language (UTF-8 encodes the english language characters using an 8-bit byte but uses 2 or 3 even 4 bytes for each character of other languages). UTF-16 supports all languages of the world but uses 2 byte for each character so irrespective of language you get the document of the same size (relatively speaking). You can set them in the header when sending data to client. You might have to check the specification but mostly all browsers in use support unicode.
manav
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic