File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UTF-8, Unicode

 
Rafal Chmielecki
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
manav kher
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic