Before you tell me to search more and to look at other people's questions and their answers read my precise question.
Most other topics here deal with how to make UTF-8 the default option within the text import wizard. However, I would like to avoid having to use the text import wizard at all.
I have CSV files that I want to open by double clicking. Excel opens them automatically, but even if I did the regedit trick of using 65001 (UTF-8) as the default encoding, the files are still not correctly displayed.
Is there some way to force this encoding in the opening of a file instead of having to import it?
Thanks in advance
(using Excel 2016 in US English and my Windows 7 regional configuration is set to Spanish (United States), I don't know if that is important, but it actually was for dealing with default commas as separators)
EDIT for clarification: accents and characters from other languages still appear as weird codes when opening a CSV file after doing the regedit trick of forcing utf-8 for the import. I am not importing though (the trick works as expected there); I am opening the file directly.


I also tried the PS2EXE method, but when I run the script the message "THE POWERSHELL VERSION IS UNKNOWN", which, according to the ps2exe.ps1 file (opened in notepad) belongs to
– Nicolás Fernández Fioretti May 26 '17 at 10:20if( $psversion -eq 0 ) { write-host "THE POWERSHELL VERSION IS UNKNOWN!" exit -1 }restricted. Check it in PoewerShell withGet-ExecutionPolicy. And if needed start PS as administrator and set it toset-executionpolicy remotesignedorSet-ExecutionPolicy unrestricted– nixda May 26 '17 at 13:04get-executionpolicyreturnsunrestricted, butset-executionpolicysays I do not have access to modifiyng the registry. I am suspecting that even if I am right-clicking powershell and selecting 'run as administrator' I am running it normally, since there is no administrator indication on the title bar of the powershell window. – Nicolás Fernández Fioretti May 26 '17 at 15:58$args = "C:\my\test.csv". Change the path to an existing test CSV on your drive. Does it open Excel and import the CSV? – nixda May 28 '17 at 09:29