How to Make CSV Exports Open Correctly for Belgian Users — Integrations & APIs article by Rui Codex

A CSV export opens cleanly for Belgian users when the field separator, decimal mark and character encoding match what the receiving program expects. Regional settings in Belgium often favour a semicolon separator and a decimal comma, so the export and the spreadsheet must agree on both, and UTF-8 handles accented Dutch and French names.

Key takeaways

  • A CSV file stores characters only, so the separator, decimal mark and encoding must be agreed between the exporter and the reader.
  • A semicolon is often the safer separator for spreadsheets that use decimal commas, but the choice must follow the receiving program's settings.
  • UTF-8 preserves accented letters in Dutch and French names, and a byte order mark helps some spreadsheet versions detect the encoding.
  • Numbers should be exported without thousands separators, and dates should use an unambiguous format.
  • Every export should be tested with the exact program and locale your users run before it reaches production.

Why do CSV files break for Belgian users?

CSV files break because the file itself carries no rules for reading it. The reader has to guess three things: which character separates fields, which character marks decimals, and which encoding turns bytes into letters. A wrong guess shifts columns, turns numbers into text or garbles names.

The basic format is described in RFC 4180, the IETF memo that describes the CSV format. It uses commas between fields and line breaks between records, but it says nothing about decimal marks or character encodings. Those choices are left to each program, which is why a file that looks correct on one computer can break on another.

For Belgian users the problem is more visible. Dutch and French locales commonly use a decimal comma, so a value such as 12,50 collides with a comma used as the field separator. Accented names add a second risk, because a file saved in the wrong encoding shows broken characters instead of names.

Which separator should a CSV export use?

Use a semicolon when the people opening the file work with spreadsheet settings that expect decimal commas. Use a comma when the receiving system is an import tool, script or database that expects the RFC default. The separator is a property of the recipient, not of your data.

Semicolon versus comma

A semicolon avoids the clash with decimal commas, so amounts such as 12,50 stay in one column. The trade-off is that importers written for the RFC default may not guess the semicolon, and some tools need it set explicitly. A comma is the more portable choice for machines, but it forces every decimal value to use a point or to be quoted.

Tab-separated files

A tab character rarely appears in business text, so tab-separated files avoid most quoting problems. They are less familiar to business users, and some e-mail gateways and upload forms strip or convert tabs. Treat tab-separated output as a deliberate choice that must be documented for each recipient.

Tip: Write the separator, decimal mark, encoding and date format into a one-page export specification, and send it with every new file layout.

How should decimal commas be handled?

Export numbers as plain values without thousands separators, and let the separator choice decide how the decimal mark appears. Thousands separators inside a raw value are the most common cause of numbers arriving as text. A value such as 1.250,00 is read differently by different programs, so it should never reach a CSV unformatted.

When the separator is a semicolon, a decimal comma is safe in most spreadsheets. When the separator is a comma, decimals must use a point, or the value must be quoted. Either approach works, but the recipient must know which one you chose.

Hypothetical examples of separator mistakes

Here are two hypothetical scenarios:

Scenario one. An invoice export uses commas as separators and decimal commas for amounts. The line for an amount of 12,50 splits into two columns, so the amount column holds 12 and the next column holds 50. Every later column in that row shifts, and the totals in the spreadsheet no longer match the source system.

Scenario two. A customer export contains a company name with a comma in it, written without quotes. The name splits across two columns, and the postcode lands in the city field. Quoting that field, as described in RFC 4180, would have prevented the shift.

Which encoding keeps accented names readable?

UTF-8 is the right default for most exports, because it represents accented Dutch and French letters, the euro sign and most other characters used in Belgian business data. The Unicode Standard, maintained by the Unicode Consortium, defines the character set that UTF-8 encodes.

A byte order mark, a short signature at the start of the file, tells some spreadsheet programs that the file is UTF-8. Without it, those programs may read the file using a legacy Windows code page and show names such as Renée as garbled text. The trade-off is that programs which read CSV as plain text can display the mark as stray characters in the first header cell.

When UTF-8 fails

Older systems and some government or bank import formats still expect Windows-1252 or another legacy encoding. A UTF-8 file sent to such a system can show errors, and characters outside the legacy set cannot be converted without loss. Confirm the encoding the recipient requires before choosing a default.

Tip: Put a name with an accent, a euro amount, a quoted comma and a line break into a test row, then open the file in each program your users run.

How do spreadsheet programs decide how to read a CSV?

Most spreadsheets guess the format when a user double-clicks a CSV file, and the guess depends on regional settings and the program version. An import dialog that lets the user set the separator and encoding is more reliable than a double-click. Behaviour differs between operating systems and versions, so the dialog should be checked in the version your users actually run; the Microsoft Support home page is a starting point for finding the documentation for a given release.

Where possible, deliver a file that does not depend on the guess at all. A plain-text delivery with a known separator and encoding, plus a short import instruction, removes most support requests.

What should an export check before release?

A short checklist catches most problems before a file reaches a user. Run it each time the export layout changes, not only when the file is first built.

  1. Confirm the separator and document it for each recipient.
  2. Save the file as UTF-8 and decide, with a test, whether a byte order mark is needed.
  3. Remove thousands separators from numeric values and use a fixed decimal mark.
  4. Quote every text field that may contain the separator, a quote or a line break.
  5. Use an unambiguous date format such as ISO 8601 for machine-readable files.
  6. Open the output in every spreadsheet and import tool your users run, and compare row counts with the source.

Teams that build exports within a larger system often find that the checklist is easier to keep when it is part of the build. Rui Codex offers technical implementation support for this kind of work, including scripted exports and their testing against the target programs.

When should an export become part of an integration?

A manual export is acceptable for a one-off file. It becomes a risk when the same file is produced by hand every week, or when data moves between an ERP system and an e-commerce platform. In those cases a scripted export, tested once and reviewed when the layout changes, is more reliable than edits made in a spreadsheet.

The same logic applies to the wider data flow. Read about ERP and CRM integration if the file is one step in a longer process, or review how system integrations handle formats and transfers. The integration and API engineering articles on the Rui Codex blog cover related engineering trade-offs in more depth.

Frequently Asked Questions

Why does my CSV open with all the data in one column?

The file most likely uses a separator that the spreadsheet does not expect, usually a comma where the regional setting expects a semicolon. Open the import dialog, choose the separator explicitly, and check the raw file in a text editor to confirm which character separates the fields.

Should I save a CSV export with a byte order mark?

Yes, for files with accented characters that are opened in spreadsheet programs on Windows, a UTF-8 byte order mark helps detection in many cases. Some tools that read CSV as plain text show the mark as stray characters, so test the file in every program your users run before adopting it as a standard.

Is a semicolon always the better separator for Belgian users?

No, a semicolon suits spreadsheets that use decimal commas, but importers, scripts and database tools often expect commas or tabs. The correct choice is the separator the receiving system reads without manual configuration, and it should be written into the export specification for each recipient.

How do I handle a comma inside a text field?

Wrap the field in double quotes and double any quote character inside it, as RFC 4180 describes. Most spreadsheet and database tools handle quoted fields correctly, but hand-written parsers often fail on them, so test a row containing commas, quotes and line breaks before release.

Can Rui Codex review my export format?

Rui Codex offers technical implementation support for integrations, including building export files and testing them against the programs your users run. It does not provide legal, tax or compliance advice, so questions about retention or personal data belong with qualified counsel. Contact details are on the contact page.

Conclusion

A CSV export works for Belgian users when its separator, decimal mark and encoding are chosen for the people who open it, not assumed from the sender's settings. Document those choices, test them in the real programs, and keep the export layout under review whenever the source data changes. A short specification and a repeatable test will prevent most of the errors described above. Request a project consultation at the Rui Codex contact page, or email info@ruicodex.com to discuss your project.

Sources

Tags: CSV export Excel import decimal comma UTF-8 encoding semicolon separator data integration Belgium spreadsheet

Need Help Implementing This?

Our team can help you put these insights into practice. From AI automation to custom software development, we build solutions that deliver real results.

Send a project request