{"Entry":{"collection":"func","key":"chr","name":"chr","aliases":[],"metadata":{"changed_in":["8.1"],"changes":[{"descriptions_changed":true,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"7.3"},{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":["chr ( int ) → text"],"removed":["chr ( integer ) → text"]},"status":"changed","to":"8.1"},{"descriptions_changed":true,"doc_overhaul":false,"from":"8.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"8.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"8.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"5efb1a9c03db90f787cb163f586331187d0d5928752c9eda454476a31a1105d8","first_version":"7.1","group":"string","group_label":"String Functions And Operators","groups":["string"],"imported_at":"2026-09-27T17:57:28.334613+08:00","last_version":"20","name":"chr","name_key":"chr","position":3006,"present_in":["7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"chr ( integer ) → text","signature_count":1,"slug":"chr","source_rev":"b7bd9cda","summary":"Returns the character with the given code.","summary_zh":""}},"Definition":{"Collection":"func","Key":"chr","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"chr","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the character with the given code. In UTF8 encoding the argument is treated as a Unicode code point. In other multibyte encodings the argument must designate an ASCII character. chr(0) is disallowed because text data types cannot store that character.","description_html":"Returns the character with the given code. In UTF8 encoding the argument is treated as a Unicode code point. In other multibyte encodings the argument must designate an ASCII character. \u003ccode class=\"literal\"\u003echr(0)\u003c/code\u003e is disallowed because text data types cannot store that character.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"},"group":"string","group_label":"String Functions And Operators","lang":"en","layout":"table-new","pages":["functions-string.html"],"prose_only":false,"signatures":[{"description":"Returns the character with the given code. In UTF8 encoding the argument is treated as a Unicode code point. In other multibyte encodings the argument must designate an ASCII character. chr(0) is disallowed because text data types cannot store that character.","description_html":"Returns the character with the given code. In UTF8 encoding the argument is treated as a Unicode code point. In other multibyte encodings the argument must designate an ASCII character. \u003ccode class=\"literal\"\u003echr(0)\u003c/code\u003e is disallowed because text data types cannot store that character.","description_zh":"","description_zh_html":"","examples":[{"expr":"chr(65)","result":"A"}],"html":"\u003ccode class=\"function\"\u003echr\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"chr ( integer ) → text","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"chr","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"chr","Summary":"返回给定代码的字符。在UTF8编码中该参数被视作一个Unicode 码点。在其他多字节编码中该参数必须指定一个ASCII字符。chr(0) 字符不被允许，因为文本数据类型不能存储这种字符。","BodyHTML":"返回给定代码的字符。在UTF8编码中该参数被视作一个Unicode 码点。在其他多字节编码中该参数必须指定一个ASCII字符。\u003ccode\u003echr(0)\u003c/code\u003e 字符不被允许，因为文本数据类型不能存储这种字符。\u003cpre\u003echr ( integer ) → text\u003c/pre\u003e返回给定代码的字符。在UTF8编码中该参数被视作一个Unicode 码点。在其他多字节编码中该参数必须指定一个ASCII字符。\u003ccode\u003echr(0)\u003c/code\u003e 字符不被允许，因为文本数据类型不能存储这种字符。","SourceRevision":"ca936764","ContentHash":"f21ea65a9ebe97dfb28870c65d5218a5f69bf5e58b820cd4e19eab7eca914eea","Payload":{"description_zh":"返回给定代码的字符。在UTF8编码中该参数被视作一个Unicode 码点。在其他多字节编码中该参数必须指定一个ASCII字符。chr(0) 字符不被允许，因为文本数据类型不能存储这种字符。","description_zh_html":"返回给定代码的字符。在UTF8编码中该参数被视作一个Unicode 码点。在其他多字节编码中该参数必须指定一个ASCII字符。\u003ccode class=\"literal\"\u003echr(0)\u003c/code\u003e 字符不被允许，因为文本数据类型不能存储这种字符。","signatures":[{"description_zh":"返回给定代码的字符。在UTF8编码中该参数被视作一个Unicode 码点。在其他多字节编码中该参数必须指定一个ASCII字符。chr(0) 字符不被允许，因为文本数据类型不能存储这种字符。","description_zh_html":"返回给定代码的字符。在UTF8编码中该参数被视作一个Unicode 码点。在其他多字节编码中该参数必须指定一个ASCII字符。\u003ccode class=\"literal\"\u003echr(0)\u003c/code\u003e 字符不被允许，因为文本数据类型不能存储这种字符。","returns":"text","text":"chr ( integer ) → text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"5252874606c5a1ccb213d244a3e6200d0201bdb485c95378412acea8c0ee501b","Text":"chr ( integer ) → text","Returns":"text","Payload":{"description":"Returns the character with the given code. In UTF8 encoding the argument is treated as a Unicode code point. In other multibyte encodings the argument must designate an ASCII character. chr(0) is disallowed because text data types cannot store that character.","description_html":"Returns the character with the given code. In UTF8 encoding the argument is treated as a Unicode code point. In other multibyte encodings the argument must designate an ASCII character. \u003ccode class=\"literal\"\u003echr(0)\u003c/code\u003e is disallowed because text data types cannot store that character.","description_zh":"","description_zh_html":"","examples":[{"expr":"chr(65)","result":"A"}],"html":"\u003ccode class=\"function\"\u003echr\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"chr ( integer ) → text","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
