#31327 [Opn->Fbk]: chinese char and word problem
ID: 31327 Updated by: [EMAIL PROTECTED] Reported By: vtsuper1 at mail dot hongkong dot com -Status: Open +Status: Feedback Bug Type: COM related Operating System: windowXP PHP Version: 5.0.4 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: [2004-12-28 20:46:49] vtsuper1 at mail dot hongkong dot com Description: I have try this code in php 5.0.3 and 4.3 I'm using Chinese winXP and Chinese Office XP apache 2 both version of php also have the same problem When I use Chinese character in the string, the output of the word file will have some meaningless spaces after the words I expected(my expected string is ok, no problem). There are no problem if I using English. And this problem will not occurs in excel. Reproduce code: --- Version}\n"; //bring it to front $word->Visible = 1; //open an empty document $word->Documents->Add(); //do some weird stuff $word->Selection->TypeText("§A¦n¶Ü"); $word->Documents[1]->SaveAs("Useless test.doc"); //closing word $word->Quit(); //free the object $word = null; ?> Expected result: §A¦n¶Ü Actual result: -- §A¦n¶Ü (there are some spaces occurs, I use the underline to repersent the spaces) -- Edit this bug report at http://bugs.php.net/?id=31327&edit=1
#31327 [Opn->Fbk]: chinese char and word problem
ID: 31327 Updated by: [EMAIL PROTECTED] Reported By: vtsuper1 at mail dot hongkong dot com -Status: Open +Status: Feedback Bug Type: COM related Operating System: windowXP PHP Version: 5.0.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: [2004-12-28 20:46:49] vtsuper1 at mail dot hongkong dot com Description: I have try this code in php 5.0.3 and 4.3 I'm using Chinese winXP and Chinese Office XP apache 2 both version of php also have the same problem When I use Chinese character in the string, the output of the word file will have some meaningless spaces after the words I expected(my expected string is ok, no problem). There are no problem if I using English. And this problem will not occurs in excel. Reproduce code: --- Version}\n"; //bring it to front $word->Visible = 1; //open an empty document $word->Documents->Add(); //do some weird stuff $word->Selection->TypeText("§A¦n¶Ü"); $word->Documents[1]->SaveAs("Useless test.doc"); //closing word $word->Quit(); //free the object $word = null; ?> Expected result: §A¦n¶Ü Actual result: -- §A¦n¶Ü (there are some spaces occurs, I use the underline to repersent the spaces) -- Edit this bug report at http://bugs.php.net/?id=31327&edit=1