On 9/14/07, Saifi Khan <[EMAIL PROTECTED]> wrote:

> Hi all:
>
>  While we are all discussing about PERL and scripting,
>  here is a problem that I need help with.
>
>  The program has access to a buffer, say buf which is
>  terminated by either '\0' or '\0\0'.
>
>  Write a script to figure out if the buf has UTF-8
>  or UTF-16 character string and find out the i18n string.

Have you looked at Encode::*  perl modules?
Hope following two things helps
man Encode::Guess
perldoc perlunicode

-krd

Reply via email to