hi everybody,
i have posted a few emails a while ago about the big5 charset support in JSP
pages.
Fortunately the problem is solved, i appreciae those who helped me.
Now, i have a new version of this problem , and it seems it is a little bit
more
complicated than the previous one. The problem is:
i am using a java bean in my jsp page to hold current items list of
customers in their shopping cart.
i am using hashtables in my java bean. Now i faced the same charset problem
here.
except the item names (in big5) which are retreived from the java bean,
everything works fine.
the chinese item names are displayed garbled.
Any one out there faced and solved the problem, or would like to suggest a
solution for this trouble?
by the way, i am using tomcat 4, jdk 1.3.1 on win 2000.
below is a snippet from my code :

items=sb.getItems();   // sb is the java bean , and getItems method returns
the keys of the hashtable
  while (items.hasMoreElements()) {
  itemid=(String)items.nextElement();  // itemid is the key value
                            // getItemname(itemid) returns the correspondent
value (itemname)
 product=new String(sb.getItemname(itemid).toString().getBytes(),"big5"); //
itemid is the key value  used to
                                                          // retreive the
value from the hashtable

i am loking forward to your help with smart solutions :)
thanks for taking time
cheers
yilmaz



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to