Namespaces
Variants
Actions

std::text_encoding::id

From cppreference.com
< cpp‎ | text‎ | text encoding
Defined in header <text_encoding>
enumclass text_encoding::id:std::int_least32_t;
(since C++26)

The scoped enumeration std::text_encoding​::​id contains an enumerator for each known registered character encoding with their corresponding MIBenum value.

[edit]Member constants

Name MIBenum value
other1
unknown2
ASCII3
ISOLatin14
ISOLatin25
ISOLatin36
ISOLatin47
ISOLatinCyrillic8
ISOLatinArabic9
ISOLatinGreek10
ISOLatinHebrew11
ISOLatin512
ISOLatin613
ISOTextComm14
HalfWidthKatakana15
JISEncoding16
ShiftJIS17
EUCPkdFmtJapanese18
EUCFixWidJapanese19
ISO4UnitedKingdom20
ISO11SwedishForNames21
ISO15Italian22
ISO17Spanish23
ISO21German24
ISO60DanishNorwegian25
ISO69French26
ISO10646UTF127
ISO646basic198328
INVARIANT29
ISO2IntlRefVersion30
NATSSEFI31
NATSSEFIADD32
ISO10Swedish35
KSC5601198736
ISO2022KR37
EUCKR38
ISO2022JP39
ISO2022JP240
ISO13JISC6220jp41
ISO14JISC6220ro42
ISO16Portuguese43
ISO18Greek7Old44
ISO19LatinGreek45
ISO25French46
ISO27LatinGreek147
ISO5427Cyrillic48
ISO42JISC6226197849
ISO47BSViewdata50
ISO49INIS51
ISO50INIS852
ISO51INISCyrillic53
ISO5427198154
ISO5428Greek55
ISO57GB198856
ISO58GB23128057
ISO61Norwegian258
ISO70VideotexSupp159
ISO84Portuguese260
ISO85Spanish261
ISO86Hungarian62
ISO87JISX020863
ISO88Greek764
ISO89ASMO44965
ISO9066
ISO91JISC62291984a67
ISO92JISC62991984b68
ISO93JIS62291984badd69
ISO94JIS62291984hand70
ISO95JIS62291984handadd71
ISO96JISC62291984kana72
ISO203373
ISO99NAPLPS74
ISO102T617bit75
ISO103T618bit76
ISO111ECMACyrillic77
ISO121Canadian178
ISO122Canadian279
ISO123CSAZ24341985gr80
ISO88596E81
ISO88596I82
ISO128T101G283
ISO88598E84
ISO88598I85
ISO139CSN36910386
ISO141JUSIB100287
ISO143IECP27188
ISO146Serbian89
ISO147Macedonian90
ISO15091
ISO151Cuba92
ISO6937Add93
ISO153GOST197687494
ISO8859Supp95
ISO10367Box96
ISO158Lap97
ISO159JISX0212199098
ISO646Danish99
USDK100
DKUS101
KSC5636102
Unicode11UTF7103
ISO2022CN104
ISO2022CNEXT105
UTF8106
ISO885913109
ISO885914110
ISO885915111
ISO885916112
GBK113
GB18030114
OSDEBCDICDF0415115
OSDEBCDICDF03IRV116
OSDEBCDICDF041117
ISO115481118
KZ1048119
UCS21000
UCS41001
UnicodeASCII1002
UnicodeLatin11003
UnicodeJapanese1004
UnicodeIBM12611005
UnicodeIBM12681006
UnicodeIBM12761007
UnicodeIBM12641008
UnicodeIBM12651009
Unicode111010
SCSU1011
UTF71012
UTF16BE1013
UTF16LE1014
UTF161015
CESU81016
UTF321017
UTF32BE1018
UTF32LE1019
BOCU11020
UTF7IMAP1021
Windows30Latin12000
Windows31Latin12001
Windows31Latin22002
Windows31Latin52003
HPRoman82004
AdobeStandardEncoding2005
VenturaUS2006
VenturaInternational2007
DECMCS2008
PC850Multilingual2009
PC8DanishNorwegian2012
PC862LatinHebrew2013
PC8Turkish2014
IBMSymbols2015
IBMThai2016
HPLegal2017
HPPiFont2018
HPMath82019
HPPSMath2020
HPDesktop2021
VenturaMath2022
MicrosoftPublishing2023
Windows31J2024
GB23122025
Big52026
Macintosh2027
IBM0372028
IBM0382029
IBM2732030
IBM2742031
IBM2752032
IBM2772033
IBM2782034
IBM2802035
IBM2812036
IBM2842037
IBM2852038
IBM2902039
IBM2972040
IBM4202041
IBM4232042
IBM4242043
PC8CodePage4372011
IBM5002044
IBM8512045
PCp8522010
IBM8552046
IBM8572047
IBM8602048
IBM8612049
IBM8632050
IBM8642051
IBM8652052
IBM8682053
IBM8692054
IBM8702055
IBM8712056
IBM8802057
IBM8912058
IBM9032059
IBM9042060
IBM9052061
IBM9182062
IBM10262063
IBMEBCDICATDE2064
EBCDICATDEA2065
EBCDICCAFR2066
EBCDICDKNO2067
EBCDICDKNOA2068
EBCDICFISE2069
EBCDICFISEA2070
EBCDICFR2071
EBCDICIT2072
EBCDICPT2073
EBCDICES2074
EBCDICESA2075
EBCDICESS2076
EBCDICUK2077
EBCDICUS2078
Unknown8BiT2079
Mnemonic2080
Mnem2081
VISCII2082
VIQR2083
KOI8R2084
HZGB23122085
IBM8662086
PC775Baltic2087
KOI8U2088
IBM008582089
IBM009242090
IBM011402091
IBM011412092
IBM011422093
IBM011432094
IBM011442095
IBM011452096
IBM011462097
IBM011472098
IBM011482099
IBM011492100
Big5HKSCS2101
IBM10472102
PTCP1542103
Amiga12512104
KOI7switched2105
BRF2106
TSCII2107
CP519322108
windows8742109
windows12502250
windows12512251
windows12522252
windows12532253
windows12542254
windows12552255
windows12562256
windows12572257
windows12582258
TIS6202259
CP502202260

[edit]Notes

For each encoding, the corresponding enumerator is derived from the alias beginning with “cs”, as follows:

  • csUnicode is mapped to ​id​::​UCS2,
  • csIBBM904 is mapped to ​id​::​IBM904,
  • and the “cs” prefix is removed from other names.

[edit]See also

the facet index type: each facet class must declare or inherit a public static member of this type
(class)[edit]
(C++11)
the std::error_condition enumeration listing all standard <cerrno> macro constants
(class)[edit]
close