---
title: ResolveDefaultTextEncoding
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1400111-resolvedefaulttextencoding
---

# ResolveDefaultTextEncoding

Returns a text encoding specification in which any meta-valueshave been resolved to real values. Currently, this affects onlythe base encoding values packed into the text encoding specification.

## Declaration

```occ
TextEncoding ResolveDefaultTextEncoding(TextEncoding encoding);
```

## Parameters

- `encoding`: A text encoding specification possibly containing meta-values that you want to resolve to a text encoding specification containing only real values.

## Return Value

Return Value A text encoding specificationcontaining only real base encoding values.

## Discussion

Discussion This function is useful for application developers who areproviding APIs that take text encoding specifications as parameters.All APIs in the Unicode Converter and Text Encoding Converter performthis translation automatically.

## See Also

### Obtaining Information From a Text Encoding Specification

- [GetTextEncodingBase](coreservices/1399792-gettextencodingbase.md)
- [GetTextEncodingFormat](coreservices/1400318-gettextencodingformat.md)
- [GetTextEncodingName](coreservices/1399645-gettextencodingname.md)
- [GetTextEncodingVariant](coreservices/1400250-gettextencodingvariant.md)
