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

... 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.

Replies are listed 'Best First'.
Re^4: win32::ole - SaveAs( )
by karavay (Beadle) on Oct 01, 2007 at 17:46 UTC
    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 - "?????????"
Re^4: win32::ole - SaveAs( )
by karavay (Beadle) on Oct 01, 2007 at 17:43 UTC
    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;"
        I've actually found the solution :
        wdFormatText 2 Microsoft Windows text format. Thanks for your replies vkon.