in reply to Re: win32::ole - SaveAs( )
in thread win32::ole - SaveAs( )

sry vkon maybe i got u wrong but, it is about the contents of the file and not about its name.

the content of the doc file should be read and saved without losing its Unicode.

Thanks for your reply,

Replies are listed 'Best First'.
Re^3: win32::ole - SaveAs( )
by vkon (Curate) on Oct 01, 2007 at 17:28 UTC
    ... then you should use either wdFormatEncodedText or wdFormatUnicodeText but you must use strict; first, which will reveal your error in its usage.

    you use Word's constants incorrectly actually wdFormatUnicodeText has some small digit value (do not have it handy)

    Use Win32::OLE::Const->Load(....); to reveal OLE constant values.

      use strict is acually used and the code comples without any arror - this is the only small part of the program that ive posted here - i've tried using wdFormatEncodedText and wdFormatUnicodeText, but it does not preserve unicode the resulting text comes as a bunch of - "?????????"
      use strict is acually used and the code comples without any arror - this is the only small part of the program that ive posted here -

      i've tried using wdFormatEncodedText and wdFormatUnicodeText, but it does not preserve unicode the resulting text comes as a bunch of - "?????????"
        wdFormatUnicodeText and wdFormatEncodedText both have value 7, try it instead.
        I do not believe that your usage of wdFormatUnicodeText survives "use strict;"