---
title: TECPluginNewEncodingConverterPtr
framework: Core Services
role: symbol
role_heading: Type Alias
platforms: [Mac Catalyst 17.0+, macOS 10.0+]
path: coreservices/tecpluginnewencodingconverterptr
---

# TECPluginNewEncodingConverterPtr

Defines a pointer to a function that determinesa conversion path for a source and destination encoding, then createsa text encoding converter object and returns a pointer to it.

## Declaration

```occ
typedef OSStatus (*TECPluginNewEncodingConverterPtr)(TECObjectRef *newEncodingConverter, TECConverterContextRec *plugContext, TextEncoding inputEncoding, TextEncoding outputEncoding);
```

## Parameters

- `newEncodingConverter`: A pointer to a converter object. On return, this points to a newly created text converter object.
- `plugContext`: A pointer to a TEC converter context record.
- `inputEncoding`: The text encoding specification for the source text.
- `outputEncoding`: The text encoding specification for the destination text.

## Return Value

Return Value A resultcode. See Result Codes.

## See Also

### Callbacks

- [UnicodeToTextFallbackProcPtr](coreservices/unicodetotextfallbackprocptr.md)
- [TECPluginGetPluginDispatchTablePtr](coreservices/tecplugingetplugindispatchtableptr.md)
- [TECPluginClearContextInfoPtr](coreservices/tecpluginclearcontextinfoptr.md)
- [TECPluginConvertTextEncodingPtr](coreservices/tecpluginconverttextencodingptr.md)
- [TECPluginFlushConversionPtr](coreservices/tecpluginflushconversionptr.md)
- [TECPluginDisposeEncodingConverterPtr](coreservices/tecplugindisposeencodingconverterptr.md)
- [TECPluginNewEncodingSnifferPtr](coreservices/tecpluginnewencodingsnifferptr.md)
- [TECPluginClearSnifferContextInfoPtr](coreservices/tecpluginclearsniffercontextinfoptr.md)
- [TECPluginSniffTextEncodingPtr](coreservices/tecpluginsnifftextencodingptr.md)
- [TECPluginDisposeEncodingSnifferPtr](coreservices/tecplugindisposeencodingsnifferptr.md)
- [TECPluginGetCountAvailableTextEncodingsPtr](coreservices/tecplugingetcountavailabletextencodingsptr.md)
- [TECPluginGetCountAvailableTextEncodingPairsPtr](coreservices/tecplugingetcountavailabletextencodingpairsptr.md)
- [TECPluginGetCountDestinationTextEncodingsPtr](coreservices/tecplugingetcountdestinationtextencodingsptr.md)
- [TECPluginGetCountSubTextEncodingsPtr](coreservices/tecplugingetcountsubtextencodingsptr.md)
- [TECPluginGetCountAvailableSniffersPtr](coreservices/tecplugingetcountavailablesniffersptr.md)
- [TECPluginGetCountWebEncodingsPtr](coreservices/tecplugingetcountwebencodingsptr.md)
- [TECPluginGetCountMailEncodingsPtr](coreservices/tecplugingetcountmailencodingsptr.md)
- [TECPluginGetTextEncodingInternetNamePtr](coreservices/tecplugingettextencodinginternetnameptr.md)
- [TECPluginGetTextEncodingFromInternetNamePtr](coreservices/tecplugingettextencodingfrominternetnameptr.md)
