Share via

Is there a way of saving and Excel file as UTF-8 tab delimited

Anonymous
2023-04-14T16:26:53+00:00

Hello,

I want to be able to save the Excel file which was opened and edited as a UTF-8 as it has multi language characters as a .txt file. However on Excel for Mac there is no option to save this format.

I can only find CSV UTF-8 or UTF- 16 Unicode

Any help appreciated

Microsoft 365 and Office | Excel | Other | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

12 answers

Sort by: Most helpful
  1. Lz365 38,191 Reputation points Volunteer Moderator
    2023-04-17T08:31:16+00:00

    Andreas/Natasha

    • Upload the file to Google Drive
    • Open it in Google Sheets
    • File > Download > Tab Separated Values (tsv)

    (did not find anything re. saving as UTF-8+Tab on Excel feedback portal)

    3 people found this answer helpful.
    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2023-04-16T09:26:24+00:00

    Lz,

    This does not create a UTF-8 tab delimited text file on a Windows machine either!

    I know if you google you will find this tip again and again. It's a battle against windmills, but please help end this fake.

    To check the result of what is actually saved, we first need an Excel file that contains characters encoded with UTF-8 that look different in ANSI. I live in Germany, we have a lot of these chars:

    Image

    https://www.dropbox.com/s/gm0ie39wceottr9/UTF8.xlsx?dl=1

    Now let us save this file as UTF-8 CSV file

    https://www.dropbox.com/s/4cmgbr1hsju0hyr/UTF8.csv?dl=1

    In Germany, the semicolon is the delimiter in a CSV, if you save the file I guess you have a comma as delimiter, but the chars and ü are encoded as € and ü as we can see within a hex editor:

    Image

    The first 3 bytes is a BOM (byte order mark) that means this CSV is really a BOM-UTF8-CSV.

    If you want a UTF8-CSV without the BOM you can use my AddIn on a Windows machine. It did not work on a Mac!

    https://www.dropbox.com/s/m7qdh5gs3wqb99r/CSV.xla?dl=1

    A CSV without the BOM contains the same chars with the same encoding, just the first 3 bytes are missing:

    https://www.dropbox.com/s/1umrgfq8zaf1czq/UTF8%20without%20BOM.csv?dl=1

    Image

    If we save the file as tab delimited file as you suggested we get this:

    https://www.dropbox.com/s/ydki48jiqr1oyyk/UTF8.txt?dl=1

    Image

    If you look closer to this last screenshot you'll see "Windows (ANSI)" below "Extras" which means the chars you see on the right edge are decoded in ANSI. And as we can see the € und ü char means that is an ANSI encoded file.

    So why does this not work:

    Image

    This window is titled "Web Options" and if we press F1 we get here:
    https://support.microsoft.com/en-us/office/web-page-options-59620e8a-7244-41cc-9867-b9d20e64e653

    [quote]

    Save this document as     Select the encoding in which you want the Web page to be saved.

    [/quote]

    This option works for .htm and .html files only, not for other file types.

    I'm not a Mac user, but my limited knowledge of the Mac leads me to believe that there is no way to create a tab-delimited UTF-8 file, because of the limitations on a Mac.

    Maybe there is a way to use a macro to make the translation of some chars and convert the whole sheet. And if we save that as ANSI tab delimited text file it might be correctly decoded as UTF-8. I've never tried it, just an idea.

    Andreas.

    3 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-04-15T09:43:10+00:00

    Thanks Bob, but is this UTF-8? I need to preserve all diacritical marks.

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-04-14T20:10:25+00:00

    Thanks Andreas, but I have been asked for the data to be shared as a tab delimited file and a CSV file is comma delimited. Does changing the extension resolve this issue? Sorry, I was not clear with the initial question.

    1 person found this answer helpful.
    0 comments No comments
  5. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2023-04-14T16:45:13+00:00

    A CSV file is a text file, there is no difference except the extension. Rename the file after you saved it as .csv

    Andreas.

    0 comments No comments