wcs+db2 multi-language data encode question - solution
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Commerce suite > wcs+db2 multi-language data encode question - solution




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    wcs+db2 multi-language data encode question - solution  
dennis_chen_canada@hotmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-06-04 09:33 AM

Dear all:

I find the solution/reason for my previous question and
post the detail here. Hope this help for somebody.

How to input:

I-1.
to register a customer with Chinese Char name from the Chinese
InFashion page

I-2.
on IE, type in the UserRegistrationAdd command with the same Chinese
Char name


Now, 2 records with different hex value in the DB2.
This means that the JSP ( not the controller ) in WCS will do some
encoding.

How to output:

I-3.
2 ways to output the data which inserted by I-1:

I-3-1.
using the original Chinese InFashion web page which provide by the WCS

I-3-2.
write a Java class to access the table directly with the encoding code
(because I need to generate the reporting files and which is for most
of the case I believe)

byte[] out1 = string_from_table.getBytes("Big5"); (or SHIFT_JIS for
Japanese)
string_can_be_write_to_report = new String(out1);

Hope this help for somebody.





============== previous message ==========
Dear all:

Does anyone know what is format for the muliti-language data that
WCS4.5 save into DB2 v7.2 (every setting is the default ones)?

- We publish a store, InFashion, with English & Chinese
- We went to register a customer with Chinese name from the Chinese
InFashion page

Now, what is the format of the data in the Address table?
Is it Big-5 (the standrad encoding for Chinese Double Byte Charater
Set)?
Is it unicode?

We did some test:
- write a simple JSP to retrieve data from Address table, then change
the encoding of IE6 to Big-5 and UTF-8, and we see garbage
- write a simple pure Java class to retrieve data from Address table,
then save it into text file, and we see garbage when open it in few
software

We do not know the answer and I cannot even get the answer from people
in IBM Taiwan.

Please help and thanks in advance

Dennis_chen_canada@hotmail.com


----------------------------------------------------------------------------
----





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register