---
title: TECClearConverterContextInfo
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1571844-tecclearconvertercontextinfo
---

# TECClearConverterContextInfo

Resets a converter object to its initial state so youcan reuse it.

## Declaration

```occ
OSStatus TECClearConverterContextInfo(TECObjectRef encodingConverter);
```

## Parameters

- `encodingConverter`: A reference to the text encoding converter object you want to reset. It can be a reference returned by the doc://com.apple.documentation/documentation/coreservices/1571815-teccreateconverter, doc://com.apple.documentation/documentation/coreservices/1571794-teccreateonetomanyconverter, or doc://com.apple.documentation/documentation/coreservices/1571829-teccreateconverterfrompath functions.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion It is more efficient to reuse an existing converter objectthan to create a new one that contains the same conversion information.This function clears the text string, but does not alter the sourceand destination encodings.  If you are converting multiple segments of a text string,you should not clear the converter object until you have convertedall the text segments.

## See Also

### Creating and Deleting Converter Objects

- [TECCreateConverter](coreservices/1571815-teccreateconverter.md)
- [TECCreateConverterFromPath](coreservices/1571829-teccreateconverterfrompath.md)
- [TECDisposeConverter](coreservices/1571839-tecdisposeconverter.md)
