You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most Visual C++ build tools support Unicode inputs and outputs.
10
+
Most Microsoft C/C++ (MSVC) build tools support Unicode inputs and outputs.
11
11
12
12
## Filenames
13
13
@@ -25,17 +25,21 @@ Unicode can be input into a source code file in the following encodings:
25
25
26
26
- UTF-8 with BOM
27
27
28
+
In the Visual Studio IDE, you can save files in several encoding formats, including Unicode ones. Save them in the **Save File As** dialog by using the dropdown on the **Save** button. Select **Save with Encoding** in the dropdown. Then, in the **Advanced Save Options** dialog, select an encoding from the dropdown list. Choose **OK** to save the file.
29
+
28
30
## Output
29
31
30
32
During compilation, the compiler outputs diagnostics to the console in UTF-16. The characters that can be displayed at your console depend on the console window properties. Compiler output redirected to a file is in the current ANSI console codepage.
31
33
32
-
## Linker response files and .DEF files
34
+
## Linker response files and `.DEF` files
35
+
36
+
Response files and *`.DEF`* files can be either UTF-16 or UTF-8 with a BOM, or ANSI.
33
37
34
-
Response files and DEF files can be either UTF-16 with a BOM, or ANSI.
38
+
## `.asm` and `.cod` dumps
35
39
36
-
## .asm and .cod dumps
40
+
*`.asm`* and *`.cod`* dumps are in ANSI by default for compatibility with MASM. Use [`/FAu`](fa-fa-listing-file.md) to output UTF-8.
37
41
38
-
.asm and .cod dumps are in ANSI by default for compatibility with MASM. Use [/FAu](fa-fa-listing-file.md) to output UTF-8. Note that if you specify **/FAs**, the intermingled source will just be directly printed and may look garbled, for example if source code is UTF-8 and you didn't specify **/FAsu**.
42
+
If you specify **`/FAs`**, the intermingled source gets printed directly. It may look garbled, for example, when the source code is UTF-8 and you didn't specify **`/FAsu`**.
0 commit comments