{"Entry":{"collection":"func","key":"pg-char-to-encoding","name":"pg_char_to_encoding","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"14","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"15"}],"content_hash":"0a705a7e123b4d886be309b7d6a464ec463d4f398d43aaab22fc1846da80b063","first_version":"15","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.124031+08:00","last_version":"20","name":"pg_char_to_encoding","name_key":"pg_char_to_encoding","position":28037,"present_in":["15","16","17","18","19","20"],"signature":"pg_char_to_encoding ( encoding name ) → integer","signature_count":1,"slug":"pg-char-to-encoding","source_rev":"b7bd9cda","summary":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-char-to-encoding","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-char-to-encoding","SourceRevision":"b7bd9cda","Facts":{"description":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns -1 if an unknown encoding name is provided.","description_html":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if an unknown encoding name is provided.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","slug":"18"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns -1 if an unknown encoding name is provided.","description_html":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if an unknown encoding name is provided.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_char_to_encoding\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eencoding\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"pg_char_to_encoding ( encoding name ) → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-char-to-encoding","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_char_to_encoding","Summary":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回-1。","BodyHTML":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回\u003ccode\u003e-1\u003c/code\u003e。\u003cpre\u003epg_char_to_encoding ( encoding name ) → integer\u003c/pre\u003e将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回\u003ccode\u003e-1\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"d318aa18e02985c5b86d330ef16998ba490f3c74c856fd7bd9393338c2264c30","Payload":{"description_zh":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回-1。","description_zh_html":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回\u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","signatures":[{"description_zh":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回-1。","description_zh_html":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回\u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","returns":"integer","text":"pg_char_to_encoding ( encoding name ) → integer","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"b7d1fcbf0c69d39bee026ace0c5defc7b14b457fabfadd41b82038df41a90d06","Text":"pg_char_to_encoding ( encoding name ) → integer","Returns":"integer","Payload":{"description":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns -1 if an unknown encoding name is provided.","description_html":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e if an unknown encoding name is provided.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_char_to_encoding\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eencoding\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"pg_char_to_encoding ( encoding name ) → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
