Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jyaul12
Frequent Visitor

Encode/Decode text

Dear Friend,

 

Could you please help, how we can encode column with cp1252 and then decode with cp1256

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @jyaul12 ,

 

Please try to use power query and transform data like this:

Text.FromBinary(
Text.ToBinary([Column1],1252),1256
)

 

vjianbolimsft_0-1683696081186.png

Refer to:

Solved: Problem with special character encoding (Possibly ... - Microsoft Power BI Community  

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
wangweiggsn
New Member

Thanks, seeing your answer I was inspired to solve my problem. I wrote a command like this:

= Json.Document(Text.ToBinary(Text.Replace(Text.FromBinary(File.Contents("C:\20230921_113447\Profit.txt")),"client-value-update:","")))

Have a nice day.

v-jianboli-msft
Community Support
Community Support

Hi @jyaul12 ,

 

Please try to use power query and transform data like this:

Text.FromBinary(
Text.ToBinary([Column1],1252),1256
)

 

vjianbolimsft_0-1683696081186.png

Refer to:

Solved: Problem with special character encoding (Possibly ... - Microsoft Power BI Community  

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors