开发者

libiconv - iconv_open() default behavior?

开发者 https://www.devze.com 2022-12-30 20:05 出处:网络
According to the documentation of iconv_open() over: http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html

According to the documentation of iconv_open() over: http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html

"//TRANSLIT" means that when a character cannot be represented in the target character set, it can be approximated through one or several characters.

and:

"//IGNORE" means that characters that cannot be represented in the target character set will be silently discarded.

But what is the de开发者_运维问答fault behavior, when neither are specified?

Thanks, Doori Bar


The default behaviour is to stop conversion and return -1, with errno set to EILSEQ if an character that cannot be converted to the target character set is encountered.

(ie. This is different to both //TRANSLIT and //IGNORE).

0

精彩评论

暂无评论...
验证码 换一张
取 消