There's a FAQ about the various UTF encodings and byte order marks. It includes some code snippets. http://unicode.org/faq/utf_bom.html -- Eric G. Miller Staff Programmer CA Dept. of Fish & Game