---
title: GetTextEncodingBase
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1399792-gettextencodingbase
---

# GetTextEncodingBase

Returns the base encoding of the specified text encoding.

## Declaration

```occ
TextEncodingBase GetTextEncodingBase(TextEncoding encoding);
```

## Parameters

- `encoding`: A text encoding specification whose base encoding you want to obtain.

## Return Value

Return Value The base encodingportion of the specified text encoding.

## Discussion

Discussion See the data type  TextEncodingRun

## See Also

### Obtaining Information From a Text Encoding Specification

- [GetTextEncodingFormat](coreservices/1400318-gettextencodingformat.md)
- [GetTextEncodingName](coreservices/1399645-gettextencodingname.md)
- [GetTextEncodingVariant](coreservices/1400250-gettextencodingvariant.md)
- [ResolveDefaultTextEncoding](coreservices/1400111-resolvedefaulttextencoding.md)
