/codepage (C# Compiler Options)

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

This option specifies which codepage to use during compilation if the required page is not the current default codepage for the system.

/codepage:id  

id
The id of the code page to use for all source code files in the compilation.

If you compile one or more source code files that were not created to use the default code page on your computer, you can use the /codepage option to specify which code page should be used. /codepage applies to all source code files in your compilation.

If the source code files were created with the same codepage that is in effect on your computer or if the source code files were created with UNICODE or UTF-8, you need not use /codepage.

See GetCPInfo for information on how to find which code pages are supported on your system.

This compiler option is unavailable in Visual Studio and cannot be changed programmatically.

C# Compiler Options
NIB How to: Modify Project Properties and Configuration Settings

Show: