| Summary: | Unicode characters saved in mysql is not properly displayed in BIRT reports | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Spirit Being <daemonstasis> |
| Component: | BIRT | Assignee: | pshi <pshi> |
| Status: | RESOLVED INVALID | QA Contact: | Xiaoying Gu <bluesoldier> |
| Severity: | critical | ||
| Priority: | P3 | CC: | bluesoldier, mwu, pshi |
| Version: | unspecified | ||
| Target Milestone: | 3.7.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Spirit Being
The data you insert into database is not correct, the BIRT will show the result as the database shows. The html shows the correct words, I think it is just a coincidence, maybe it uses the same encoding as you use in php.
The data in the database should be the same as you write in php. I think you can add code "PDO.exec("SET NAMES 'GBK'")" or "PDO.exec("SET NAMES 'utf8'")" in your php code before you execute the database operation. Just have a try and it is also related to the encoding in mysql.
update the status |