{"id":2559,"date":"2023-05-08T12:30:25","date_gmt":"2023-05-08T17:30:25","guid":{"rendered":"http:\/\/www.ishygddt.xyz\/~blog\/?p=2559"},"modified":"2023-05-11T16:49:48","modified_gmt":"2023-05-11T21:49:48","slug":"ia5string-definition","status":"publish","type":"post","link":"http:\/\/www.ishygddt.xyz\/~blog\/2023\/05\/ia5string-definition","title":{"rendered":"IA5string definition"},"content":{"rendered":"<p>From <a href=\"https:\/\/www.itu.int\/rec\/T-REC-X.680\/en\">ITU-T Rec. X.680 (02\/21)<\/a>:<\/p>\n<blockquote>\n<h4>C.5.7<\/h4>\n<p><code class=\"\" data-line=\"\">IA5String<\/code> [is] mapped into <code class=\"\" data-line=\"\">UniversalString<\/code> by mapping each character into the <code class=\"\" data-line=\"\">UniversalString<\/code> character that has the identical (32-bit) value in the BER encoding of <code class=\"\" data-line=\"\">UniversalString<\/code> as the (8-bit) value of the BER encoding of <code class=\"\" data-line=\"\">IA5String<\/code>[.]<\/p><\/blockquote>\n<blockquote>\n<h4>41.6<\/h4>\n<p>The characters which can appear in the <code class=\"\" data-line=\"\">UniversalString<\/code> type are any of the characters allowed by ISO\/IEC 10646 [aka Unicode].<\/p><\/blockquote>\n<blockquote>\n<h4>43.8<\/h4>\n<p>For <code class=\"\" data-line=\"\">IA5String<\/code>, [the] entire character set contains precisely 128 characters[.]<\/p><\/blockquote>\n<p>So it would seem that <code class=\"\" data-line=\"\">IA5String<\/code> <em>really is<\/em> identical to ASCII, considering that <em>all<\/em> 128 ASCII characters, including non-printable ones, are identical to the Unicode characters of the same index. (This can be tested via Python by <code class=\"language-python\" data-line=\"\">assert all(struct.pack(&#039;!B&#039;, i).decode(&#039;ascii&#039;) == chr(i) for i in range(128))<\/code>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From ITU-T Rec. X.680 (02\/21): C.5.7 IA5String [is] mapped into UniversalString by mapping each character into the UniversalString character that has the identical (32-bit) value in the BER encoding of UniversalString as the (8-bit) value of the BER encoding of IA5String[.] 41.6 The characters which can appear in the UniversalString type are any of the &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,97],"tags":[],"class_list":["post-2559","post","type-post","status-publish","format-standard","hentry","category-drafts","category-original-content"],"_links":{"self":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/2559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/comments?post=2559"}],"version-history":[{"count":14,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/2559\/revisions"}],"predecessor-version":[{"id":2574,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/posts\/2559\/revisions\/2574"}],"wp:attachment":[{"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/media?parent=2559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/categories?post=2559"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ishygddt.xyz\/~blog\/wp-json\/wp\/v2\/tags?post=2559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}