web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Non english characters...
Power Automate
Answered

Non english characters not importing properly - csv to sharepoint

(0) ShareShare
ReportReport
Posted on by 6

I get data to a group e-mail with a csv attachment. The csv contains text data in swedish which somtimes includes the letters å,ä,ö.

I want to save the data to a sharepoint list but as soon as I read the data from the file I get "escape characters" instead of å,ä,ö. 

If I just save the file with power automate the swedish special letters remains readable in the csv file in sharepoint. 

 

How can I extract the data without getting the questionmarks where the special characters were?

 

 

ringmjar_1-1697792319203.png

 

 

ringmjar_0-1697786260599.png

 

File content aft

ringmjar_2-1697792383940.png

 

Categories:
I have the same question (0)
  • EmadBeshai Profile Picture
    806 Moderator on at

    Hi @ringmjar ,

     

    .csv file is a kind of text file. If you encode it in UTF-8 format, there are two ways to save it.

    - Text only

    Byte Order Mark(BOM)+Text

    BOM is 3 characters (EF BB BF) to mark the file is encoded as UTF-8.

    When you generate .csv file in Power Automate, it does not include BOM.

    So, when you open the .csv file in excel, special characters(i.e. Korean) will be broken.

     

    The solution is to add 3 BOM characters in front of the .csv file content before saving it.

     

    concat(uriComponentToString('%EF%BB%BF'),body('Create_CSV_table'))
     
    Please mark this answer as the solution if it helped you. Thank you!
  • ringmjar Profile Picture
    6 on at

    Thanks for the reply. 

    I have seen a similar answer before on another post but I cant figure out how to do it.

    The problem is not saving the file. I can save the file and keep the special characters as shown on the last picture in my original post. 

    The problem is reading the data. In the solution you posted, you say use the 'Create_CSV_table'. But I cant compose that csv data without getting the replacement "?" in the data. 

     

    Do you understand my problem?

    I dont really need to save the file in sharepoint at all. I just want to read the data in the attachment from the e-mail including the special characters.

     

    Any ideas?


    Regards

  • ringmjar Profile Picture
    6 on at

    See reply above

  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at

    I think this is because:

    This text is not encoded in UTF-8, but in code page 1252 (or similar). So don't add a BOM

    Since the PA web interface uses utf-8, these characters are not displayed correctly.

    However, they exist unchanged in the data.

    This allows you to save the file contents and makes it look good when your display application can handle the code page.

    I don't know of a way to convert this to utf-8 in PA without using an external service.

     

    Conclusion: Use utf-8, this code page hell was decades ago 😉

     

     

  • EmadBeshai Profile Picture
    806 Moderator on at

    Hi @ringmjar ,

     

    I created a sample flow to show you what you need to do

    EmadBeshai_0-1697817433872.png

     

    EmadBeshai_1-1697817482329.png

    If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

     

  • Verified answer
    Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at

    I recommend to check the character encoding of the file first.

    Every good text editor software can do that.

     

    You can not change the character encoding by adding a BOM.

    If the original file isn't utf-8, this won't help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard