Microsoft.VisualStudio.R.Package.DataInspect.DataImport.ImportDataWindow.ConvertToUtf8 C# (CSharp) Method

ConvertToUtf8() private method

private ConvertToUtf8 ( string file, int codePage, bool reportProgress, int nRows = Int32.MaxValue ) : System.Threading.Tasks.Task
file string
codePage int
reportProgress bool
nRows int
return System.Threading.Tasks.Task
        private async Task ConvertToUtf8(string file, int codePage, bool reportProgress, int nRows = Int32.MaxValue) {
            try {
                DeleteTempFile();
                await ConvertToUtf8Worker(file, codePage, reportProgress, nRows);
            } catch (IOException ex) {
                OnError(ex.Message);
            } catch (UnauthorizedAccessException ex) {
                OnError(ex.Message);
            }
        }