I had some hard times figuring out how to properly read a file that contains typical German characters (e.g umlauts) so I want to share my solution in case are in the same situation.
The magic trick is to register a new provider named “windows-1254” using Encoding.RegisterProvider
I use Genymotion as Android emulator for my Xamarin work, I know that there are better alternatives like Microsoft’s Android emulator but since can’t turn on Hyper-V on my machine this is the solution that works best for me.
Haven’t done any Android development recently so since I need to prepare some demos for my forthcoming session at Future Decoded I checked my system and discovered that Android emulator wasn’t working anymore as happened in the past. Checked the logs but nothing evident was listed apart some in influent login error, I then tried to run VirtualBox alone and noted that it was not starting at all, no error nor messages, just nothing was happening.
Ok, let’s reinstall Genymotion to latest version, maybe recent Windows 10 Anniversay update broke something, did that, no errors but, nothing changed, ok, let’s try installing VirtualBox alone from Oracle site and BOOM! got a weird error message about an adapter not being created because it was not possible to rename it (WHAAAT?)
Fired up a search engine looking for solutions and found thousands of thread starting from 2010, some of them even suggesting to repave the entire machine, luckily among this tons of documentation my attention got catched by a guy that claimed to have solved using this steps:
- 1-Go to
- 2-Go into each directory contained into network and install the drivers by tight clicking every .inf file and selection Install from popup menu
3-Go to Network Connections, right click the Ethernet adapter associated with VirtualBox and select Properties
4-On the network properties panel, click Install and select Services
5-Now select the Oracle’s VirtualBox driver and select OK
6-Be sure that VirtualBox NDIS driver is selected.
7-Complete Genymotion install, if not already done, otherwise, just download a device and runt it, if it is your lucky day, it should work.
You can read the original answer here, it also worked for me of course.
…and after this annoying procedure you can go back coding in relax.