Character set attribute to allow per-program encodings eg ANSI, UTF8, OEM or ASCII
             
| Restriction: | 
|---|
| MicroFocus.COBOL.RuntimeServices are supported for .NET managed code only. | 
Inheritance Hierarchy
SystemAttribute
CharsetAttribute
MicroFocus.COBOL.RuntimeServicesCharsetAttribute
Namespace: MicroFocus.COBOL.RuntimeServices
Assembly: MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax
[AttributeUsageAttribute(AttributeTargets.Class)] public sealed class CharsetAttribute : CharsetAttribute
The CharsetAttribute type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|  | CharsetAttribute | 
            Specifies the character set used by the program, such as ANSI, OEM, UTF8 or ASCII.
             | 
Remarks
Examples
cobol
program-id. Program1 as "Program1".
environment division.
configuration section.
repository.
class cls-MessageBox as "System.Windows.Forms.MessageBox"
class cls-CharacterSet as
    "MicroFocus.COBOL.RuntimeServices.CharsetAttribute"
.
class-attributes.
custom-attribute is cls-CharacterSet("ANSI")
.
 data division.
 procedure division.
 main.
  invoke cls-MessageBox :: "Show" ("This is a Euro-Symbol: €")See Also