---
title: ChangeTextToUnicodeInfo
framework: Core Services
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: coreservices/1433487-changetexttounicodeinfo
---

# ChangeTextToUnicodeInfo

Changes the mapping information for the specified Unicodeconverter object used to convert text to Unicode to the new mappingyou provide.

## Declaration

```occ
OSStatus ChangeTextToUnicodeInfo(TextToUnicodeInfo ioTextToUnicodeInfo, ConstUnicodeMappingPtr iUnicodeMapping);
```

## Parameters

- `ioTextToUnicodeInfo`: The Unicode converter object of type doc://com.apple.documentation/documentation/coreservices/texttounicodeinfo containing the mapping to be modified. You use the function doc://com.apple.documentation/documentation/coreservices/1433598-createtexttounicodeinfo to obtain one.
- `iUnicodeMapping`: A structure of type doc://com.apple.documentation/documentation/coreservices/unicodemapping identifying the new mapping to be used. This is the mapping that replaces the existing mapping in the Unicode converter object.

## Return Value

Return Value A resultcode. See Result Codes.

## Discussion

Discussion The function replaces the mapping table information that currentlyexists in the Unicode converter object pointed to by the ioTextToUnicodeInfo parameterwith the information contained in the UnicodeMapping structureyou supply as the iUnicodeMapping parameter.  ChangeTextToUnicodeInfo resetsthe Unicode converter object’s fields as necessary.  If an error is returned, the Unicode converter object is invalid.

## See Also

### Converting to Unicode

- [ConvertFromTextToUnicode](coreservices/1433517-convertfromtexttounicode.md)
- [CreateTextToUnicodeInfo](coreservices/1433598-createtexttounicodeinfo.md)
- [CreateTextToUnicodeInfoByEncoding](coreservices/1433560-createtexttounicodeinfobyencodin.md)
- [DisposeTextToUnicodeInfo](coreservices/1433669-disposetexttounicodeinfo.md)
- [ResetTextToUnicodeInfo](coreservices/1433526-resettexttounicodeinfo.md)
