I have a perl script that reads data from a table in MS SQL server and saves it in a file. Now, there is a column which contains multibyte characters. When I set the LANG parameter of the Unix shell to "UTF-8", the multibyte character is treated as a single character and the length of the column is perfectly fine. However, when I change the LANG to "C", column length is increased as each byte in multibyte character is treated as a separate character. I somehow feel that perl is not properly handling multibyte characters.
Perl version - v5.16.3, RHEL - 7.
Kindly help.