UTF-16LE fails in substitution

2005-09-15 Thread Steve Larson
What I want to do is add a version string comment at the beginning of .xml files. I test to see if the file is UNICODE (Encode::Unicode) or ASCII (Encode::XS) using guess_encoding. My ASCII case works fine but the regexp for the UNICODE case fails. Below snippet is the code for the UNICODE

Re: UTF-16LE fails in substitution

2005-09-15 Thread Dan Kogai
On Sep 15, 2005, at 07:05 , Steve Larson wrote: What I want to do is add a version string comment at the beginning of .xml files. I test to see if the file is UNICODE (Encode::Unicode) or ASCII (Encode::XS) using guess_encoding. My ASCII case works fine but the regexp for the UNICODE