---
title: TECGetEncodingList
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1571830-tecgetencodinglist
---

# TECGetEncodingList

Gets the list of destination encodings from a converterobject.

## Declaration

```occ
OSStatus TECGetEncodingList(TECObjectRef encodingConverter, ItemCount *numEncodings, Handle *encodingList);
```

## Parameters

- `encodingConverter`: A reference to the text encoding conversion object returned by the doc://com.apple.documentation/documentation/coreservices/1571794-teccreateonetomanyconverter function.
- `numEncodings`: On return, a pointer to the number of encodings specified by the encodingList handle.
- `encodingList`: A handle to an array of text encoding specifications. On return, it contains an array of text encoding specifications to which the converter object can convert. The memory for the array is allocated automatically by the Text Encoding Converter.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion The TECDisposeConverter functionautomatically disposes of the pointer for you. This means you shouldnot reference the pointer after you have disposed of the converter object.  Plug-ins that perform one-to-many conversions use the TECGetEncodingList functionto get the output encoding list from the converter object reference.

## See Also

### Converting to Multiple Encoding Runs

- [TECConvertTextToMultipleEncodings](coreservices/1571849-tecconverttexttomultipleencoding.md)
- [TECCreateOneToManyConverter](coreservices/1571794-teccreateonetomanyconverter.md)
- [TECFlushMultipleEncodings](coreservices/1571842-tecflushmultipleencodings.md)
