Is there any method to convert UTF-8 to UTF-16 BE in VBscript?
I have this following code, but converts only into UTF-16 LE. I need the output be in UTF-16 BE.
Sub Utf8ToUtf16Le(fileIn,fileOut) Set FSO = CreateObject("Scripting.FileSystemObject") Set oStream = CreateObject ("ADODB.Stream") With oStream .Open .Type = adTypeText .Charset = "utf-8" .LoadFromFile fileIn FSO.OpenTextFile(fileOut, 2, True, True).Write .ReadText .Close End With End Sub