As part of my new requirement,I have to accomodate changes for displaying multi byte data.Please suggest me the probable changes need to be done accomplishing the task.Please find the exact scenario below
scenario:I have to pull the multi byte data from DB2 database and display it on the UI besides having base framework struts on web sphere server.
Joe Ess wrote:Welcome to the JavaRanch.
What is "multi byte data"? Isn't data larger than one byte, like an int, multi-byte?
Multi byte data is the one which will be stored in more than a byte.Like the english character set will be stored in less than a byte..where as if we take chinese characterset,they can be stored in more than a byte..For displaying such a kind of character set on the browser,I hope some changes need to be accomodated.I am trying to analyse the probable solutions on the requirement
You mean Unicode? Java Strings are Unicode, so Struts supports it too. The only problem I could see is that your JSP tag has to declare the same charset as the data you are trying to display.
chinese,japanese languages will take more space to get stored and hence comes under multi byte and the character set encoding shud be set to UTF-8 .For displaying this,we need to set the character set encoding in the jsp page and when any multi byte data is passed from a form to an action,then there is again a mechanism of retrieving the exact value..these are the outline solutions that stay on my mind,could be great if somebody explains me how to proceed further on this issue