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 default 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
).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.