On Fri, Feb 16, 2001 at 09:47:39PM +0000, Nick Ing-Simmons wrote: > Case C was Graham's LDAP case. It relied on perl producing UTF8 encoded > form for 128..255 and then did 'use byte' to peak at it. > It broke when 5.6+ decided to keep 128...255 as 'byte' anyway. > The right way to do this is to export the trivial XS code which > does an upgrade and then turns off the flag. (As current Encode does.) Right, What I need is a function that when I pass it a string it will return the bytes that would be the utf-8 encoding. Which in this case is just a downgrade. Graham.