Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 - Advanced Save Options Encoding types missing

I'm experiencing a very odd behaviour of my Visual Studio 2013 and 2015 installations on my Windows 10 x64 machine: they're not showing anymore the full "Advanced Save Options..." Encoding type list, which has been reduced to only 3 possible choices (see screenshot #1).

Screenshot 1: VS2015/VS2013 on Windows 10 - only 3 encoding types available

The list is expecting to contain a largely wider selection of encoding types, including the UTF-8 without BOM which I'm using a lot: they're all available on the VS I installed on my laptop (Windows 8.1 x64, Visual Studio 2013, see screenshot #2).

Screenshot 2: VS2013 on Windows 8.1 - all encoding types available

Anyone knows why this is happening and how to fix that? Thanks in advance.

EDIT: All these VS builds are Community Edition, including the one on the laptop (it shouldn't be related to the build - the CE always had these enctypes). The first screenshot's path has been scratched by me, it's showing fine in the GUI.

like image 236
Darkseal Avatar asked Nov 02 '15 02:11

Darkseal


1 Answers

Visual Studio seems to use the IMultiLanguage2::EnumCodePages method to populate this combo box. Its second parameter is the language ID the caller wants the descriptions to be in and VS is passing 0x409 (US English), which I guess is its language version (it may be different when you use localized version of VS, but you don't seem to be doing that). The problem manifests itself in Windows 10 when you don't have US English language pack installed. Previous versions of Windows seem to contain the code page descriptions in every language (I've tried British English and Polish) but I guess Windows 10 is more thrifty with that and returns an empty enumeration when you call that method asking for descriptions in language it doesn't have an installed language pack for.

TL;DR Add the "English (United States)" language and install its associated language pack, either via Settings or Control Panel. You can also get the language pack DVD for offline installation with the lpksetup tool via MSDN subscription if you have one.

like image 86
cynic Avatar answered Nov 06 '22 20:11

cynic