-encoding

Specifies the default source encoding used by the compiler.

Syntax
  -enc[oding] keyword

The options for keyword are:

ascii

American Standard Code for Information Interchange (ASCII) format. This is the default.

autodetect | multibyte | mb

Scan file for multibyet encoding.

system

Uses local system format.

UTF[8 | -8]

Unicode Transformation Format (UTF).

SJIS | Shift-JIS | ShiftJIS

Shift Japanese Industrial Standard (Shift-JIS) format.f

EUC[JP | -JP]

Japanese Extended UNIX Code (EUCJP) format.

ISO[2022JP | -2022-JP]

International Organization of Standards (ISO) Japanese format.

Remarks

The compiler automatically detects UTF-8 (Unicode Transformation Format) header or UCS-2/UCS-4 (Uniform Communications Standard) encodings regardless of setting. The default setting is ascii.

Related information
-char
-defaults
-flag
-gccext
-gcc_extensions
-M
-make
-mapcr
-MM
-MD
-MMD
-msext
-once
-pragma
-relax_pointers
-requireprotos
-search
-trigraphs