dim s as string = "hello"
s = s.ConvertEncoding( Encodings.UTF16 )
dim t as text = s.ToText
s = "hello"
s = s.ConvertEncoding( Encodings.UTF16BE )
t = s.ToText
s = "hello"
s = s.ConvertEncoding( Encodings.UTF16LE )
t = s.ToText
break
I think the issue here is that UTF16 doesn’t imply BE or LE without a BOM and failing that its assumed to be one way or the other