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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Convert UTF-8 to UTF-8-SIG/UTF-8-BOM

(3) ShareShare
ReportReport
Posted on by 72
Hello everyone,
 
I was exporting a csv file using outstream in Business Central with textencoding::UTF-08. Now I want textencoding::UTF-08-SIG or textencoding::UTF-08-BOM but I don't know how to do that. Can anyone please help?
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    11,382 Super User 2026 Season 1 on at
    Hello,
     
    BC doesn’t have UTF8-BOM, so you just write the BOM bytes yourself before writing the CSV:
     
    // Write UTF-8 BOM manually
    var bom: array[3] of Byte;
    bom[1] := 239; // EF
    bom[2] := 187; // BB
    bom[3] := 191; // BF
    OutStr.Write(bom);
     
    // Then write your text normally (UTF8)
    OutStr.WriteText(MyCsvText);
     
    That produces UTF-8 with BOM (UTF-8-SIG).
     
    Regards,
    Oussama Sabbouh

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,055 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,063 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,014 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans