Files and formats

Open CSV without broken text or lost zeros: encoding and columns

CSV stores text records with separated fields, while TSV commonly uses tabs.

Updated: 07/11/2026

Original illustrative symbol for csv files
A Mira4Tech teaching illustration identifying the format.

Follow the steps and understand the result

Step through at your own pace, or play the walkthrough to follow each stage.

Identify the format

sample.csv

Open a suitable copy

copy → supported app

Choose the conversion result

id,name

Verify the result

compare source / result

Format and suitable tasks

CSV stores text records with separated fields, while TSV commonly uses tabs. The extension alone does not establish character encoding or the actual delimiter. A small sample containing names and numbers is a useful test, especially for phone numbers or identifiers beginning with zero.

Prepare a controlled check

Decide whether you need reading, editing or printing. Test a page, sheet or slide containing important elements such as Arabic, numbers and tables. Record the app and version so you can reproduce the result or explain a failure.

Opening step by step

In Calc, open the file and review the text import dialog. Choose the source encoding and inspect comma, semicolon or tab separation in the preview. Set phone and identifier columns to text and inspect an Arabic row before confirming. Double-clicking may reuse unsuitable previous settings.

A Mira4Tech hands-on check

id;name;city
00123;ندى;"القاهرة; مصر"

In a PowerShell test, importing this sample as UTF-8 with a semicolon separator produced three columns. The identifier stayed 00123 and the quoted city value remained in one cell, including its embedded semicolon. A comma separator yielded one column. To try the sample in Calc, choose semicolon, use a double quote as the string delimiter and set the id column to Text in the preview.

Conversion or export and what changes

After importing correctly, save XLSX or ODS if you need sheets, formatting or formulas. When exporting CSV again, inspect delimiter, encoding and selected sheet. Fields containing delimiters or newlines need appropriate quoting. Global comma replacement can alter the actual data.

Verify the result for your task

Compare row and column counts, an Arabic name, a leading-zero identifier and a field containing a delimiter. Reimport the output with known settings and compare sample values with the original.

An important limit before relying on the file

Untrusted CSV data may contain values that spreadsheet apps interpret as formulas. Review text-import behaviour, especially unknown fields beginning with an equals sign.

If the result differs from expectations

If a whole row lands in one column, adjust the separator in the import preview. If the columns line up but 00123 becomes 123, set the identifier column to Text and reimport the original before saving.

Return to the format reference → · Look up an error message · Try file exercises

Sources and review

Prepared and edited by the Mira4Tech team. The teaching sequence uses format behaviour and app documentation. Menu names may differ by release and language; test a separate copy in your environment.