---
title: TECGetDestinationTextEncodings
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1571808-tecgetdestinationtextencodings
---

# TECGetDestinationTextEncodings

Returns the encoding specifications for all the destinationtext encodings to which the Text Encoding Converter can directlyconvert the specified source encoding.

## Declaration

```occ
OSStatus TECGetDestinationTextEncodings(TextEncoding inputEncoding, TextEncoding destinationEncodings[], ItemCount maxDestinationEncodings, ItemCount *actualDestinationEncodings);
```

## Parameters

- `inputEncoding`: The text encoding specification describing the source text.
- `destinationEncodings`: On return, an array of specifications for the destination encodings to which the converter can directly convert the source encoding. You should use the doc://com.apple.documentation/documentation/coreservices/1571805-teccountdestinationtextencodings function to determine how large an array to allocate.
- `maxDestinationEncodings`: The maximum number of destination text encodings that the array can contain.
- `actualDestinationEncodings`: On return, a pointer to the number of text encoding specifications in the destination encodings array.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion This function ignores duplicate direct text encoding specifications.If you used the  TECCountDestinationTextEncodings function to determine the size of the destinationEncodings[] array,the number of available encodings may be fewer than the number ofarray elements, because TECCountDestinationTextEncodings includesduplicates in its count. You can display the names of these destination encodings tothe user.

## See Also

### Identifying Possible Destination Encodings

- [TECCountDestinationTextEncodings](coreservices/1571805-teccountdestinationtextencodings.md)
