Code: Select all
#CP_UTF8=65001
in.s = "ABCDEF"
l = MultiByteToWideChar_(#CP_OEMCP,0,@in,-1,0,0)
l = MultiByteToWideChar_(#CP_OEMCP,0,@in,-1,*out,l)
l = WideCharToMultiByte_(#CP_UTF8,0,*out,-1,0,0,0,0)
out2.s = Space(l)
l = WideCharToMultiByte_(#CP_UTF8,0,*out,-1,@out2,l,0,0)
Debug out2
Because I had not had the example of converting UTF-8, it contributed.
When HTML is output, this is used.
Thanks