zhaosheng wrote:
> Stephan Bergmann wrote:
>> What exactly do you mean by "opened by double clicking" above?  Are you
>> in the Windows Explorer, double clicking on some file for which
>> OpenOffice.org will be started to display it?
> 
> yes, as you said, I can't open the openoffice file with special characters in 
> file name, 
> for MS office, it can open the file with special characters,
> I guess OO doesn't support special characters as file name, but when I have 
> an OO running on 
> windows,  if I chose open a file in the hard disk, I can open the file with 
> special characters.
> looking forward to your guys thoughts

I'm not a Windows expert, so I do not know what exactly happens when you
double click a file in the Explorer.  But I guess the Explorer starts
the soffice executable and passes it the pathname of the file as a
command line argument.  Pathnames in Windows are in Unicode (UTF-16).
Command line arguments are byte strings.  So, Explorer has to translate
the UTF-16 pathname into a byte string.  It uses some text encoding
depending on the user's locale.  OOo has to interpret the passed in
command line argument.  It "guesses" a text encoding based on the user's
locale (osl_getThreadTextEncoding).  Two things can go wrong:  1 The
text encoding used by Explorer to translate the UTF-16 pathname into a
byte string does not support all the characters in the pathname.  2 The
text encoding guessed by OOo does not match the text encoding used by
Explorer.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to