成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

iconv_open 中文man頁面

系統
iconv_open 函數 分配 一個 用于 把 fromcode 編碼的 字符串轉換成 tocode 編碼 的 轉換 描述符.

NAME

iconv_open - 分配一個字符集轉換的描述符

總覽 (SYNOPSIS)

#include <iconv.h>

iconv_t iconv_open (const char* tocode, const char* fromcode);

描述 (DESCRIPTION)

iconv_open 函數 分配 一個 用于 把 fromcode 編碼的 字符串轉換成 tocode 編碼 的 轉換 描述符.

fromcodetocode 所允許的值 以及 支持的 組合方式 都是 與系統 相關的. 對于 這個 libiconv 庫, 它 支持 下面 的 編碼, 也 支持 其所有 的 組合.

歐洲語言
ASCII, ISO-8859-{1,2,3,4,5,7,9,10,13,14,15,16}, KOI8-R, KOI8-U, KOI8-RU, CP{1250,1251,1252,1253,1254,1257}, CP{850,866}, Mac{Roman,CentralEurope,Iceland,Croatian,Romania}, Mac{Cyrillic,Ukraine,Greek,Turkish}, Macintosh
閃米特語言
ISO-8859-{6,8}, CP{1255,1256}, CP862, Mac{Hebrew,Arabic}
日文
EUC-JP, SHIFT-JIS, CP932, ISO-2022-JP, ISO-2022-JP-2, ISO-2022-JP-1
中文
EUC-CN, HZ, GBK, GB18030, EUC-TW, BIG5, CP950, BIG5-HKSCS, ISO-2022-CN, ISO-2022-CN-EXT
韓文
EUC-KR, CP949, ISO-2022-KR, JOHAB
Armenian
ARMSCII-8
Georgian
Georgian-Academy, Georgian-PS
泰語
TIS-620, CP874, MacThai
撈撾語
MuleLao-1, CP1133
越南語
VISCII, TCVN, CP1258
特定平臺
HP-ROMAN8, NEXTSTEP
Full Unicode
UTF-8
UCS-2, UCS-2BE, UCS-2LE
UCS-4, UCS-4BE, UCS-4LE
UTF-16, UTF-16BE, UTF-16LE
UTF-32, UTF-32BE, UTF-32LE
UTF-7
JAVA
uint16_tuint32_t 表示的 Unicode
(其 字節順序 和 對齊方式 與 具體 機器 有關) UCS-2-INTERNAL, UCS-4-INTERNAL
charwchar_t 表示的 與 區域設置 相關的 編碼
(其 字節順序 和 對齊方式 與 具體 機器 有關, 其 語意 與操作系統 和 當前 區域設置 中的 LC_CTYPE 有關) char, wchar_t

tocode 后面 加上 "//TRANSLIT" 表示, 當 在目標 字符集中 不能 表示 一個 字符 時, 就用 同其 相似 的 一個 字符 來 代替.

其 返回的 轉換 描述符 可以 被 iconv 多次 使用. 只要 沒有 用 iconv_close 將其 釋放, 它 就是 有效的.

轉換 描述符 包含了 轉換的 狀態. 在用 iconv_open 建立 一個 描述符時 狀態為 初始態. iconv 會 改變 它的 狀態. (這說明 一個 描述符不能在 多線程中 同時 使用.) 可以 把 NULL 作為 inbuf 傳給 iconv 來 使其 回到 初始態.

返回值 (RETURN VALUE)

iconv_open 函數 返回 一個 新的 轉換 描述符. 如果 發生 錯誤 則設置 errno 變量 同時 返回 (iconv_t)(-1).

錯誤 (ERRORS)

除了 一般的 錯誤, 還可能 有 下面的 錯誤:

EINVAL
此系統 不支持 從 fromcodetocode 的 轉換.

遵循 (CONFORMING TO)

UNIX98

參見 (SEE ALSO)

iconv(3), iconv_close(3)

#p#

NAME

iconv_open - allocate descriptor for character set conversion  

SYNOPSIS

#include <iconv.h>

iconv_t iconv_open(const char *tocode, const char *fromcode);

DESCRIPTION

The iconv_open function allocates a conversion descriptor suitable for converting byte sequences from character encoding fromcode to character encoding tocode.

The values permitted for fromcode and tocode and the supported combinations are system dependent. For the GNU C library, the permitted values are listed by the iconv --list command, and all combinations of the listed values are supported.

The resulting conversion descriptor can be used with iconv any number of times. It remains valid until deallocated using iconv_close.

A conversion descriptor contains a conversion state. After creation using iconv_open, the state is in the initial state. Using iconv modifies the descriptor's conversion state. (This implies that a conversion descriptor can not be used in multiple threads simultaneously.) To bring the state back to the initial state, use iconv with NULL as inbuf argument.  

RETURN VALUE

The iconv_open function returns a freshly allocated conversion descriptor. In case of error, it sets errno and returns (iconv_t)(-1).  

ERRORS

The following error can occur, among others:

EINVAL
The conversion from fromcode to tocode is not supported by the implementation.

CONFORMING TO

UNIX98  

SEE ALSO

iconv(3), iconv_close(3), iconv(1)

責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-25 16:57:51

iconv_close中文man

2011-08-25 14:19:52

open中文man

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:39:39

apm中文man

2011-08-11 17:10:55

cat中文man

2011-08-11 17:35:07

chgrp中文man

2011-08-11 17:53:06

chown中文man

2011-08-11 17:59:24

chsh中文man

2011-08-11 18:07:57

cksum中文man

2011-08-11 18:19:32

col中文man

2011-08-11 18:58:08

date中文man

2011-08-12 09:17:57

deallocvt中文man

2011-08-12 09:23:11

diff中文man

2011-08-12 09:23:16

dig中文man

2011-08-12 10:15:13

dumpkeys中文man

2011-08-12 10:41:00

file中文man

2011-08-12 11:15:27

gzip中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 精品国产乱码久久久久久1区2区 | 国产精品美女久久久久久免费 | 自拍亚洲 | 夜夜精品视频 | 亚洲精品中文字幕在线观看 | 亚洲精品久久久久中文字幕二区 | 日韩高清成人 | 亚州毛片 | 国产精品亚洲二区 | 久久精品aaa | 亚洲在线观看视频 | 中文字幕在线视频一区二区三区 | 国产精品毛片久久久久久 | 亚洲精品国产精品国自产在线 | 亚洲成人精选 | 国产中文区二幕区2012 | 天天操夜夜爽 | 中文二区| 黄色在线免费观看 | 日韩国产精品一区二区三区 | 看一级黄色毛片 | 国产黄色在线观看 | 精品国产一区二区三区日日嗨 | 狠狠干影院 | 亚洲精品福利在线 | 国产福利免费视频 | 久久综合一区二区 | 日韩在线视频一区 | 成人性视频免费网站 | 欧美一区在线视频 | 久久久观看 | 日韩国产中文字幕 | 免费一区二区三区 | 国产精品久久av | 一区二区三区视频免费看 | 免费大黄视频 | 人人精品 | 国产精品福利在线 | 色综合99 | 蜜桃视频一区二区三区 | 美女视频黄的免费 |