ID:               36695
 Updated by:       [EMAIL PROTECTED]
 Reported By:      vtsupermok at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         COM related
 Operating System: window
 PHP Version:      5.1.2
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Dupe.


Previous Comments:
------------------------------------------------------------------------

[2006-03-11 03:58:46] vtsupermok at gmail dot com

Description:
------------
Actually this bug is same with the bug #31327. 
http://bugs.php.net/bug.php?id=31327
Although the bug has been assigned to someone but sadly it haven't been
solved for a long time. The developer beleieve it is caused by the
setting of com.code_page and stop solve the bug. But I'm sure it isn't
since I have try all the code page that micosoft word support. So I'm
really hope someone can solve this problem. This problem has been exist
from 4.x until now, in microsoft word only (Excel is normal) and english
is normal but Chinese has problem


Reproduce code:
---------------
<?php

$code_page=array('950','0','1','2','3','65001');

for ($i=0;$i<count($code_page);$i++){
    // starting word
    $word = new COM("word.application",NULL,$code_page[$i]) or
die("Unable to instantiate Word");
    echo "Loaded Word, version {$word->Version}\n";
    
    //bring it to front
    $word->Visible = 1;
    
    //open an empty document
    $word->Documents->Add();
    
    //do some weird stuff
    $word->Selection->TypeText("ÄãºÃ†á");
   
    $path="D:\\AppServ\\www\\word\\".$i.".doc";
    echo $path."<br>";
    $word->Documents[1]->SaveAs($path);
    
    //closing word
    $word->Quit();
    
    //free the object
    $word = null;
} 
?>

Expected result:
----------------
ÄãºÃ†á

Actual result:
--------------
ÄãºÃ†á___

(there are 3 spaces or square after my words, but I use underline to
represent it)


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


-- 
Edit this bug report at http://bugs.php.net/?id=36695&edit=1

Reply via email to