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
Faith128
Regular Visitor

MySQL data problem in power bi

I already get MySQL data in power bi desktop.

I have some Chinese record in DB like this.

Annotation 2019-10-30 142018.png

How can I decode this on power bi desktop.

Thank you.

7 REPLIES 7
JosefPrakljacic
Solution Sage
Solution Sage

Hey @Faith128,

 

you can't decode it since its already wrong in your database. Your table in MySql already have to show the "decoded" format. 

You have to set the caracter set and collation of the table within MySQL BEFORE you insert any chinese characters.

 



 

mysql> create table foo (v varchar(10)) CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 0 rows affected (0.00 sec)

mysql> insert into foo values('太原星河湾酒店'); Query OK, 1 row affected (0.00 sec)

mysql> select * from foo;
+-----------------------+
| v |
+-----------------------+
| 太原星河湾酒店 |
+-----------------------+
1 row in set (0.00 sec)

 

 

 

If this post was helpful may I ask you to mark it as solution and give it a 'thumbs up'? This will also help others

Have a nice day!

BR,
Josef
Graz - Austria

 

 

Hi JosefPrakljacic, Thanks for your reply. My DB setting is already utf8_unicode_ci. But still get this. So I want to decode it on power bi desktop. Is it impossible?

When you query your MySQL Table what result do you get?

 

Chinese Letter or some undefined Letters?

In power bi, undefined Letters.

And in your MySQL Table? 

same undefined Letters in MySQL

Then @Faith128 I'm sorry you are not able to "decode" it in PowerBI. You should try to convert it in your MySQL Table.

I'm not a MySQL Expert but maybe this will help (you need to scroll a bit down) or this (i think this link is better)

 

If this post was helpful may I ask you to mark it as solution and give it a 'thumbs up'? This will also help others

Have a nice day!

BR,
Josef
Graz - Austria

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