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

# TextEncodingBase

Specify base text encodings.

## Declaration

```occ
typedef UInt32 TextEncodingBase;
```

## Discussion

Discussion You use a base text encoding data type to specify which text encoding or text encoding scheme you have used to express a given text. The text encoding base value is the primary specification of the source or target encoding. Values 0 through 32 correspond directly to Mac OS script codes. Values 33 through 254 are for other Mac OS encodings that do not have their own script codes, such as the Symbol encoding implemented by the Symbol font. You can also specify a meta-value as a base text encoding, such as kTextEncodingMacHFS and kTextEncodingUnicodeDefault. A meta-value is mapped to a real value.  The function GetTextEncodingBase returns the text encoding base of a text encoding specification. A base text encoding is defined by the TextEncodingBase data type.

## Topics

### Constants

- [kTextEncodingMacRoman](coreservices/1399980-afp_text_encodings/ktextencodingmacroman.md)
- [kTextEncodingMacJapanese](coreservices/1399980-afp_text_encodings/ktextencodingmacjapanese.md)
- [kTextEncodingMacChineseTrad](coreservices/1399980-afp_text_encodings/ktextencodingmacchinesetrad.md)
- [kTextEncodingMacKorean](coreservices/1399980-afp_text_encodings/ktextencodingmackorean.md)
- [kTextEncodingMacArabic](coreservices/1399980-afp_text_encodings/ktextencodingmacarabic.md)
- [kTextEncodingMacHebrew](coreservices/1399980-afp_text_encodings/ktextencodingmachebrew.md)
- [kTextEncodingMacGreek](coreservices/1399980-afp_text_encodings/ktextencodingmacgreek.md)
- [kTextEncodingMacCyrillic](coreservices/1399980-afp_text_encodings/ktextencodingmaccyrillic.md)
- [kTextEncodingMacDevanagari](coreservices/1399980-afp_text_encodings/ktextencodingmacdevanagari.md)
- [kTextEncodingMacGurmukhi](coreservices/1399980-afp_text_encodings/ktextencodingmacgurmukhi.md)
- [kTextEncodingMacGujarati](coreservices/1399980-afp_text_encodings/ktextencodingmacgujarati.md)
- [kTextEncodingMacOriya](coreservices/1399980-afp_text_encodings/ktextencodingmacoriya.md)
- [kTextEncodingMacBengali](coreservices/1399980-afp_text_encodings/ktextencodingmacbengali.md)
- [kTextEncodingMacTamil](coreservices/1399980-afp_text_encodings/ktextencodingmactamil.md)
- [kTextEncodingMacTelugu](coreservices/1399980-afp_text_encodings/ktextencodingmactelugu.md)
- [kTextEncodingMacKannada](coreservices/1399980-afp_text_encodings/ktextencodingmackannada.md)
- [kTextEncodingMacMalayalam](coreservices/1399980-afp_text_encodings/ktextencodingmacmalayalam.md)
- [kTextEncodingMacSinhalese](coreservices/1399980-afp_text_encodings/ktextencodingmacsinhalese.md)
- [kTextEncodingMacBurmese](coreservices/1399980-afp_text_encodings/ktextencodingmacburmese.md)
- [kTextEncodingMacKhmer](coreservices/1399980-afp_text_encodings/ktextencodingmackhmer.md)
- [kTextEncodingMacThai](coreservices/1399980-afp_text_encodings/ktextencodingmacthai.md)
- [kTextEncodingMacLaotian](coreservices/1399980-afp_text_encodings/ktextencodingmaclaotian.md)
- [kTextEncodingMacGeorgian](coreservices/1399980-afp_text_encodings/ktextencodingmacgeorgian.md)
- [kTextEncodingMacArmenian](coreservices/1399980-afp_text_encodings/ktextencodingmacarmenian.md)
- [kTextEncodingMacChineseSimp](coreservices/1399980-afp_text_encodings/ktextencodingmacchinesesimp.md)
- [kTextEncodingMacTibetan](coreservices/1399980-afp_text_encodings/ktextencodingmactibetan.md)
- [kTextEncodingMacMongolian](coreservices/1399980-afp_text_encodings/ktextencodingmacmongolian.md)
- [kTextEncodingMacEthiopic](coreservices/1399980-afp_text_encodings/ktextencodingmacethiopic.md)
- [kTextEncodingMacCentralEurRoman](coreservices/1399980-afp_text_encodings/ktextencodingmaccentraleurroman.md)
- [kTextEncodingMacVietnamese](coreservices/1399980-afp_text_encodings/ktextencodingmacvietnamese.md)
- [kTextEncodingMacExtArabic](coreservices/1399980-afp_text_encodings/ktextencodingmacextarabic.md)
- [kTextEncodingMacSymbol](coreservices/1399980-afp_text_encodings/ktextencodingmacsymbol.md)
- [kTextEncodingMacDingbats](coreservices/1399980-afp_text_encodings/ktextencodingmacdingbats.md)
- [kTextEncodingMacTurkish](coreservices/1399980-afp_text_encodings/ktextencodingmacturkish.md)
- [kTextEncodingMacCroatian](coreservices/1399980-afp_text_encodings/ktextencodingmaccroatian.md)
- [kTextEncodingMacIcelandic](coreservices/1399980-afp_text_encodings/ktextencodingmacicelandic.md)
- [kTextEncodingMacRomanian](coreservices/1399980-afp_text_encodings/ktextencodingmacromanian.md)
- [kTextEncodingMacCeltic](coreservices/1399980-afp_text_encodings/ktextencodingmacceltic.md)
- [kTextEncodingMacGaelic](coreservices/1399980-afp_text_encodings/ktextencodingmacgaelic.md)
- [kTextEncodingMacKeyboardGlyphs](coreservices/1399980-afp_text_encodings/ktextencodingmackeyboardglyphs.md)

## See Also

### Encodings and Variants

- [Compatibility TextEncodings](coreservices/1399939-compatibility_textencodings.md)
- [EBCDIC and IBM Host Text Encodings](coreservices/1400244-ebcdic_and_ibm_host_text_encodin.md)
- [Encoding Variants for Big-5](coreservices/1399673-encoding_variants_for_big-5.md)
- [Encoding Variants for Mac OS Encodings](coreservices/1399862-encoding_variants_for_mac_os_enc.md)
- [Encoding Variants for MacArabic](coreservices/1399984-encoding_variants_for_macarabic.md)
- [Encoding Variants for MacCroatian](coreservices/1400365-encoding_variants_for_maccroatia.md)
- [Encoding Variants for MacCyrillic](coreservices/1400107-encoding_variants_for_maccyrilli.md)
- [Encoding Variants for MacFarsi](coreservices/1399681-encoding_variants_for_macfarsi.md)
- [Encoding Variants for MacHebrew](coreservices/1400410-encoding_variants_for_machebrew.md)
- [Encoding Variants for MacIcelandic](coreservices/1400089-encoding_variants_for_maciceland.md)
- [Encoding Variants for MacJapanese](coreservices/1399915-encoding_variants_for_macjapanes.md)
- [Encoding Variants for MacRoman](coreservices/1399701-encoding_variants_for_macroman.md)
- [Encoding Variants for MacRoman Related to Currency](coreservices/1399860-encoding_variants_for_macroman_r.md)
- [Encoding Variants for MacRomanian](coreservices/1399955-encoding_variants_for_macromania.md)
- [Encoding Variants for MacRomanLatin1](coreservices/1400256-encoding_variants_for_macromanla.md)
- [Encoding Variants for MacVT100](coreservices/1400045-encoding_variants_for_macvt100.md)
- [Encoding Variants for Unicode](coreservices/1399897-encoding_variants_for_unicode.md)
- [EUC Text Encodings](coreservices/1399707-euc_text_encodings.md)
- [HFS Text Encoding](coreservices/1400242-hfs_text_encoding.md)
- [ISO 2022 Text Encodings](coreservices/1400073-iso_2022_text_encodings.md)
- [ISO 8-bit and 7-bit Text Encodings](coreservices/1399699-iso_8-bit_and_7-bit_text_encodings.md)
- [Mac Unicode Text Encoding](coreservices/1399907-mac_unicode_text_encoding.md)
- [Miscellaneous Text Encoding Standards](coreservices/1399782-miscellaneous_text_encoding_stan.md)
- [MS-DOS and Windows Text Encodings](coreservices/1400434-ms-dos_and_windows_text_encodings.md)
- [National Standard Text Encodings](coreservices/1400246-national_standard_text_encodings.md)
- [NextStep Platform Encodings](coreservices/1400238-nextstep_platform_encodings.md)
- [Special Text Encoding Values](coreservices/1400396-special_text_encoding_values.md)
- [TextEncodingFormat](coreservices/textencodingformat.md)
- [TextEncodingNameSelector](coreservices/textencodingnameselector.md)
- [Text Encoding Variants](coreservices/1400145-text_encoding_variants.md)
- [Unicode and ISO UCS Text Encodings](coreservices/1400188-unicode_and_iso_ucs_text_encodin.md)
- [Unsupported Unicode Variants](coreservices/1400371-unsupported_unicode_variants.md)
