Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

convertation from utf-8 to utf-16

Dear colleagues!     I am getting string data from ODBC in UTF-8 encoding. Can anybody explain how to convert this data to UTF-16 using Power BI functions? Something like it's possible in .NET:   ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Dear colleagues, thank you for help!

        It was my missunderstunding with encoding number. When I has changed query to this:

     #"Added Custom" = Table.AddColumn(Source, "CUSTCODEUTF16", each Text.FromBinary(Text.ToBinary([CUSTCODE], 1251), TextEncoding.Utf8)

    everything start working correctly.