{"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","derived_content_hash":"39a241a73077831d3a8726c148f9f1d6d956222aa252f5b7a7c843dd75640631","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:65a32b59270c72540d18d4161ad62b8f476789720a6c4ab8a82688a25b583e42","versions":{"15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"3ca14d92f9c40993d32dcb7257c7a22896bfc0214554f37c84adc72af22d185c","repair":"wiki-repair-20261023"},"signature":"pg_char_to_encoding ( encoding name ) → integer","signature_count":1,"slug":"pg-char-to-encoding","source_rev":"wiki-repair-20261023:65a32b59270c72540d18d4161ad62b8f476789720a6c4ab8a82688a25b583e42","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":"wiki-repair-20261023:65a32b59270c72540d18d4161ad62b8f476789720a6c4ab8a82688a25b583e42","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":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 -1。","description_zh_html":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","version":"18.7"},{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"f9684137c0b9fb17a691c4d905529d114472a507a007c15058f2703962b611d2","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"info","group_label":"系统信息函数和操作符","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":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 -1。","description_zh_html":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-info.html","sha256":"7c33185e79430cfbda432dc4db277115c7ac846afccadfcf904ceb1bf2aa1ba5"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-char-to-encoding","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_char_to_encoding","Summary":"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.","BodyHTML":"Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns \u003ccode\u003e-1\u003c/code\u003e if an unknown encoding name is provided.","SourceRevision":"wiki-repair-20261023:65a32b59270c72540d18d4161ad62b8f476789720a6c4ab8a82688a25b583e42","ContentHash":"7f4abc27cc3382251e814bf397f365105473ebff194b57757f385db2c08cec84","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.","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":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 -1。","description_zh_html":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 -1。","description_zh_html":"将提供的编码名称转换为表示在某些系统目录表中使用的内部标识符的整数。如果提供了未知的编码名称，则返回 \u003ccode class=\"literal\"\u003e-1\u003c/code\u003e。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
