I have a website (Spring + Hibernate + MS SQL Server) that accepts user input in traditional Chinese and saves it in the database. For example, a user may enter the following:
31~40歲
I notice that it is saved as the following in the database
31~40歲
Note that the saved text can be correctly retrieved and displayed in the browser. I also use Apache POI package to export user input into Excel. However, in Excel, the text is
31~40歲
Not
31~40歲
In my export code, I simply used:
cell.setCellValue(_get_data_from_database_);
What is missing in my work? In the database layer? Or in export to Excel?