<<< Date Index >>>     <<< Thread Index >>>

Re: national chars - libiconv not used?



Alain Bench wrote:

    Pick your system iconv command (not /usr/local/bin/iconv), and try:

OK, I downloaded a few better binaries :-)
unset LC_ALL


| $ printf "Ren\xC3\xA9\n" | /usr/bin/iconv -f utf-8 -t ibm852
| René

hpuh:/>/opt/sh_utils/bin/printf "Ren\xC3\xA9\n" | /usr/bin/iconv -f utf8 -t ibm852
René

| $ printf "Ren\xC3\xA9\n" | /usr/bin/iconv -f utf-8
| René

hpuh:/>/opt/sh_utils/bin/printf "Ren\xC3\xA9\n" | /usr/bin/iconv -f utf8
iconv: can not initialize the conversion


| $ printf "Ren\xE9\n" | /usr/bin/iconv -f iso-8859-1 -t ibm852
| René

hpuh:/>/opt/sh_utils/bin/printf "Ren\xE9\n" | /usr/bin/iconv -f iso-8859-1 -t ibm852
iconv: can not initialize the conversion

(but
hpuh:/usr/lib/nls/iconv # grep 8859-2 config.iconv
# iso82 : ISO 8859-2
# alias for iso-8859-1, iso-8859-2 edited hajek@xxxxxxxx (180602)
# alias iso82 iso8859_2 iso88592 iso-8859-2 ISO-8859-2
alias iso82 iso8859_2 iso88592 iso-8859-2 ISO-8859-2 ISO8859-2
)

| $ printf "Ren\xE9\n" | /usr/bin/iconv -f iso-8859-2 -t ibm852
| René

hpuh:/>/opt/sh_utils/bin/printf "Ren\xE9\n" | /usr/bin/iconv -f iso-8859-2 -t ibm852
René


Thanks, Michal