This is the second times I post this topic, I'm in stuck of Struts with 
Japanese. I use <html:text> to input and show Japanese characters and save them 
to mySQL (set charset sjis). The jsp page which contains <html:text> above, I 
set charset is sjis. If everything does right, japanese character will be saved 
in mySQL, and I could show them in <html:text> Struts tag. But everything 
doesn't happen like that, I can input japanese characters in <html:text>, 
saving them to mySQL, but in mySQL, them saved like Decimal NCRs, some thing 
like &#12431 for each character, it's not 2 bytes character like mySQL spec 
said if I set my database's charset is sjis in mySQL but it's 4 bytes 
characters (may be Struts <html:text> encodes automatically Japanese character 
to decimal characters before Saving To Database Action happens ?). So when I 
get Japanese characters from mySQL to show on JSP by <html:text>, I only see 
decimal characters.

So, plz help me and show me the way to save & show special characters like 
Japanese or Vietnamese to mySQL with Struts.

thanks for reading!

Pham

Reply via email to