' FileToStr() VFP equivalent ' expC1 File name Public Function FileToStr(ByVal tcFileName As String) As String Dim loFile As IO.StreamReader Dim lcString As String Try loFile = New IO.StreamReader(tcFileName, System.Text.Encoding.Default) lcString = loFile.ReadToEnd() loFile.Close() Catch loError As Exception oApp.ErrorSetup(loError) lcString = "" End Try Return lcString End FunctionIf the file being read contains some French characters, they are being shown really weird on the page. What adjustment would be needed to assure a proper encoding?