iconv_open
时间: 2023-08-21 10:08:39 浏览: 177
iconv_open()函数是用来申请一个字符集转换的描述符的函数。该函数的原型是`iconv_t iconv_open(const char* tcode, const char* fromcode)`。该函数的作用是将字符序列从编码fromcode转换为编码tcode。调用iconv_open()函数后,会返回一个新申请的转换描述符,该描述符包含了转换的状态。需要注意的是,转换描述符不能在多线程中同时使用。如果调用出错,该函数会返回( iconv_t)-1。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [iconv_open()函数](https://blog.csdn.net/sinat_28338727/article/details/50833561)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [iconv_open出错.txt](https://download.csdn.net/download/wusuoweimeiguanxi/8578809)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文