|
|
@@ -108,7 +108,7 @@ def to_mdb(db: pathlib.Path, tmp: pathlib.Path, nt: int) -> list[str]:
|
|
|
'$acc.Visible = $false',
|
|
|
'$acc.OpenCurrentDatabase($db)']
|
|
|
for i in range(1, nt + 1):
|
|
|
- lines.append(f'$acc.DoCmd.TransferText(0, "", "t{i}", "{tmp / f"t{i}.csv"}", $true)')
|
|
|
+ lines.append(f'$acc.DoCmd.TransferText(0, "", "t{i}", "{tmp / f"t{i}.csv"}", $true, "", 65001)')
|
|
|
lines += ['$acc.CloseCurrentDatabase()', '$acc.Quit()',
|
|
|
'$c = New-Object -ComObject ADODB.Connection',
|
|
|
'$c.Open("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=$db;")']
|