Status in source: unconfirmed.
Technical details
{
"smi_kind": "OBJECT-TYPE",
"definition": [
"defaultCharacterSet",
"OBJECT-TYPE",
"SYNTAX",
"INTEGER",
"{",
"other",
"(",
"1",
")",
",",
"eightBit",
"(",
"2",
")",
",",
"utf8Style",
"(",
"3",
")",
"}",
"MAX-ACCESS",
"read-write",
"STATUS",
"current",
"DESCRIPTION",
"\"<Definition> Indicates the algorithm used to encode each characterNumber within a MULTI string. <Format> other (1): a read-only value indicating an encoding scheme other than those listed below, refer to the device manual. Implementations that support other encodings shall provide a parallel manufacturer-specific object that provides a read-only enumeration for 'standard' along with any custom enumerations. A set to the parallel manufacturer-specific object shall cause this object to transition to 'other' and a set of this object shall cause the parallel manufacturer-specific object to transition to 'standard'. eightBit (2): each characterNumber of the current font is encoded as an 8- bit unsigned integer. This encoding scheme only supports native representation of character numbers 1 through 255. Higher character numbers can only be displayed using the hexadecimal character tag ([hcx]). utf8Style (4): each characterNumber of the current font is encoded as if it were a Unicode codepoint encoded according to the rules of UTF-8 (however, there is no verification that the character bitmap actually resembles the character defined by that code point). However, as the font table is limited to 65,535 characters, only codes up to 3-octets in length are supported. These rules can be summarized as follows: - Values less than 128 are encoded in the 7 available bits in the mask '0xxx xxxx'; - Values greater than 127 but less than 2048 are encoded in the eleven available bits of the mask '110x xxxx 10xx xxxx'; and - Remaining values are ecoded in the 16 available bits in the mask '1110 xxxx 10xx xxxx 10xx xxxx' - This format does not support 4-octet UTF-8 codes because each font is limited to 65535 characters. This object may be sub-ranged by an implementation (e.g., an implementation might only support eightBit encoding); see Section 3.5.2.2.2.8 for more information. <Informative> The eightBit and utf8Style formats are conceptually similar to well-known encoding formats (i.e., ASCII and UTF-8) but allow the fonts to be customized by the user through the use of the font table so that different signs can produce similar glyphs (i.e., to define the pixel-level representation of each character). However, it is important to note that the resulting multistring does not necessarily reflect a genuine ASCII or UTF-8 string, as there is no guarantee that the character bitmaps called by the multistring will correspond to the conceptual characters identified by their ASCII and Unicode codepoints. Example 1: A MULTI string with an encoded value of 0x41 E2 9C 8B, would be decoded as follows according to the different encoding schemes: eightBit: four 8-bit characters with codes 65, 226, 156, and 139 utf8Style: an 8-bit character followed by a 24-bit character. The first character is code 65 and the second character is: E 2 9 C 8 B in hex 1110 0010 1001 1100 1000 1011 in binary 0010 01 1100 00 1011 removing mask 0010 0111 0000 1011 compressing 2 7 0 B in hex 9995 in decimal Example 2: The MULTI string '[fo2]', which is a tag to indicate font 2, is encoded as '0x5b 66 6f 32 5d' in both the eightBit and utf8Style encoding (i.e., all characters have codes less than 128) Example 3: While it is often convenient to align characterNumbers and characterBitmaps with ASCII or UTF-8 character codes, this is not a requirement. For example, Character 65 in one font might represent the letter 'A', but in another font it can represent the grinning face emoticon. As such, any character bitmap (including those represented by Unicode codepoints greater than 65535) can be defined and supported for display. Example 4: Per the rules of Multistring syntax, the left and right bracket characters ('[' and ']') are reserved for tags and to display either, the character must appear two times in a row within the MULTI string. Thus, to display '[', the MULTI string would be '0x5b5b' for both 'eightBit' and 'utf8Style' encoding. <Parameter Type> Configuration <Object Identifier> 1.3.6.1.4.1.1206.4.2.3.4.10\"",
"DEFVAL",
"{",
"eightBit",
"}",
"::=",
"{",
"multiCfg",
"10",
"}"
],
"syntax_tree": [
[
"SimpleSyntax",
"INTEGER",
[
"enumSpec",
[
[
"other",
1
],
[
"eightBit",
2
],
[
"utf8Style",
3
]
]
]
],
null,
[
"MaxAccessPart",
"read-write"
],
[
"Status",
"current"
],
[
"DESCRIPTION",
"<Definition> Indicates the algorithm used to encode each characterNumber within a MULTI string. <Format> other (1): a read-only value indicating an encoding scheme other than those listed below, refer to the device manual. Implementations that support other encodings shall provide a parallel manufacturer-specific object that provides a read-only enumeration for 'standard' along with any custom enumerations. A set to the parallel manufacturer-specific object shall cause this object to transition to 'other' and a set of this object shall cause the parallel manufacturer-specific object to transition to 'standard'. eightBit (2): each characterNumber of the current font is encoded as an 8- bit unsigned integer. This encoding scheme only supports native representation of character numbers 1 through 255. Higher character numbers can only be displayed using the hexadecimal character tag ([hcx]). utf8Style (4): each characterNumber of the current font is encoded as if it were a Unicode codepoint encoded according to the rules of UTF-8 (however, there is no verification that the character bitmap actually resembles the character defined by that code point). However, as the font table is limited to 65,535 characters, only codes up to 3-octets in length are supported. These rules can be summarized as follows: - Values less than 128 are encoded in the 7 available bits in the mask '0xxx xxxx'; - Values greater than 127 but less than 2048 are encoded in the eleven available bits of the mask '110x xxxx 10xx xxxx'; and - Remaining values are ecoded in the 16 available bits in the mask '1110 xxxx 10xx xxxx 10xx xxxx' - This format does not support 4-octet UTF-8 codes because each font is limited to 65535 characters. This object may be sub-ranged by an implementation (e.g., an implementation might only support eightBit encoding); see Section 3.5.2.2.2.8 for more information. <Informative> The eightBit and utf8Style formats are conceptually similar to well-known encoding formats (i.e., ASCII and UTF-8) but allow the fonts to be customized by the user through the use of the font table so that different signs can produce similar glyphs (i.e., to define the pixel-level representation of each character). However, it is important to note that the resulting multistring does not necessarily reflect a genuine ASCII or UTF-8 string, as there is no guarantee that the character bitmaps called by the multistring will correspond to the conceptual characters identified by their ASCII and Unicode codepoints. Example 1: A MULTI string with an encoded value of 0x41 E2 9C 8B, would be decoded as follows according to the different encoding schemes: eightBit: four 8-bit characters with codes 65, 226, 156, and 139 utf8Style: an 8-bit character followed by a 24-bit character. The first character is code 65 and the second character is: E 2 9 C 8 B in hex 1110 0010 1001 1100 1000 1011 in binary 0010 01 1100 00 1011 removing mask 0010 0111 0000 1011 compressing 2 7 0 B in hex 9995 in decimal Example 2: The MULTI string '[fo2]', which is a tag to indicate font 2, is encoded as '0x5b 66 6f 32 5d' in both the eightBit and utf8Style encoding (i.e., all characters have codes less than 128) Example 3: While it is often convenient to align characterNumbers and characterBitmaps with ASCII or UTF-8 character codes, this is not a requirement. For example, Character 65 in one font might represent the letter 'A', but in another font it can represent the grinning face emoticon. As such, any character bitmap (including those represented by Unicode codepoints greater than 65535) can be defined and supported for display. Example 4: Per the rules of Multistring syntax, the left and right bracket characters ('[' and ']') are reserved for tags and to display either, the character must appear two times in a row within the MULTI string. Thus, to display '[', the MULTI string would be '0x5b5b' for both 'eightBit' and 'utf8Style' encoding. <Parameter Type> Configuration <Object Identifier> 1.3.6.1.4.1.1206.4.2.3.4.10"
],
null,
null,
null,
[
"DEFVAL",
"eightBit"
]
]
}