---
title: GetTextEncodingFormat
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1400318-gettextencodingformat
---

# GetTextEncodingFormat

Returns the format value of the specified text encoding.

## Declaration

```occ
TextEncodingFormat GetTextEncodingFormat(TextEncoding encoding);
```

## Parameters

- `encoding`: A text encoding specification.

## Return Value

Return Value The text encodingformat value contained in the text encoding you specified.

## See Also

### Obtaining Information From a Text Encoding Specification

- [GetTextEncodingBase](coreservices/1399792-gettextencodingbase.md)
- [GetTextEncodingName](coreservices/1399645-gettextencodingname.md)
- [GetTextEncodingVariant](coreservices/1400250-gettextencodingvariant.md)
- [ResolveDefaultTextEncoding](coreservices/1400111-resolvedefaulttextencoding.md)
