[freetds] detecting iconv names

ZIGLIO Frediano Frediano.Ziglio at vodafoneomnitel.it
Fri May 2 08:25:23 EDT 2003


I'm doing some tests to test iconv.
My intention is to convert some code and see results. Problem is portability
I tried this line
  echo foo | iconv -f iso88591 -t ucs2 | perl -ne "print unpack('H*',\$_);"
on a HP/UX 10.20 and produce
  0066006f006f000a
(as expected, it's UCS-2 bigendian)
Now, problem is perl. Does all system support perl?
My intention is to put these tests in configure so it should be portable. I don't know any command to return hexdump in a portable way (ie hexdump is not present in HP/UX)...

freddy77



More information about the FreeTDS mailing list