> Does word have any settings to handle this format.
As far as I know there is nothing you can specify. If you have no control
over the format it's probably best to use a bit of code to automate the
"open and save" operation you are already doing, e.g.
Sub ConvertToUTF8()
' convert to a UTF8 format text file
' Needs error checking etc.
Dim oDoc as Word.Document
' change msoEncodingUnicodeLittleEndian to be the encoding you need. I think
this should
work.
Set oDoc = Documents.Open("the path name of the file you need to
convert.txt", _
False, , False, , , , , , _
wdOpenFormatEncodedText, _
msoEncodingUnicodeLittleEndian, _
False, False, , True)
' Several of the parameters here are optional or
' irrelevant - you can probably remove the lines from
' ReadOnlyRecommended to SaveAsAOCLetter
oDoc.SaveAs _
FileName:="the path name of the file to convert to.txt", _
FileFormat:=wdFormatUnicodeText, _
AddToRecentFiles:=False, _
ReadOnlyRecommended:=False, _
EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, _
SaveFormsData:=False, _
SaveAsAOCLetter:=False, _
Encoding:=msoEncodingUTF8, _
InsertLineBreaks:=False, _
AllowSubstitutions:=False, _
LineEnding:=wdCRLF
oDoc.Close Savechanges:=False
Set oDoc = Nothing
End Sub
or
Sub ConvertToWord()
' convert to a Word document file
' Needs error checking etc.
Dim oDoc as Word.Document
' change msoEncodingUnicodeLittleEndian to be the encoding you need. I think
this should
work.
Set oDoc = Documents.Open("the path name of the file you need to
convert.txt", _
False, , False, , , , , , _
wdOpenFormatUnicodeLittleEndian, _
msoEncodingWestern, _
False, False, , True)
' Several of the parameters here are optional or
' irrelevant - you can probably remove the lines from
' ReadOnlyRecommended to Encoding
oDoc.SaveAs _
FileName:="the path name of the file to convert to.doc", _
FileFormat:=wdFormatDocument, _
AddToRecentFiles:=False, _
ReadOnlyRecommended:=False, _
EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, _
SaveFormsData:=False, _
SaveAsAOCLetter:=False, _
Encoding:=msoEncodingUTF8, _
InsertLineBreaks:=False, _
AllowSubstitutions:=False, _
LineEnding:=wdCRLF
oDoc.Close Savechanges:=False
Set oDoc = Nothing
End Sub
Personally I would be interested to know whether or not the Little Endian
format you have contains the marker bytes I mentioned. If it does, I'm not
sure the first of the above will help, and possibly not the second. If it
does not, it might be interesting to try saving manually as Little Endian
(in which case I'm fairly sure Word will add the marker) and see if that
file works. But if you can't actually get your application to generate that
format, it's really of academic interest only.

Signature
Peter Jamieson - Word MVP
Word MVP web site http://word.mvps.org/
> Hi,
> Thanks for that info.
[quoted text clipped - 61 lines]
> >
> >.