Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6124209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:06:24+00:00 2026-05-23T16:06:24+00:00

I had a trouble exporting UTF-8 data to Excel, but now it’s ok, because

  • 0

I had a trouble exporting UTF-8 data to Excel, but now it’s ok, because I’ve found this:

Microsoft Excel mangles Diacritics in .csv files?

Look at this line:

echo chr(255) . chr(254) . mb_convert_encoding($csv, 'UTF-16LE', 'UTF-8');

When I remove chr(255) . chr(254) at the beginning the Excel can’t display UTF-8 data normally, so can’t the browser.

It’s not a problem of course, I would just like to know, why those chr(255) and chr(254) are essential.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:06:25+00:00Added an answer on May 23, 2026 at 4:06 pm

    It seems, that Excel requires the Byte Order Mark (BOM). The BOM is always at the beginning of a file and either FFFE or FEFF. It describes in which order the separate bytes of a multibyte-character appears (lets say “forward” or “backward”). Usually its strongly recommended to omit it, but it seems, that excel uses it to determine the file encoding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question may have been asked before, but I had trouble finding an answer,
This seemed like it should be easy, but I have had trouble getting it
I had trouble coming up with a title for this question because I'm not
This is possibly answered somewhere already but had trouble searching for it as I
I have researched this but have had trouble implementing it into my code. I
I found lots of answers regarding AJAX calls, but I had trouble finding an
Is this a known issue? I had trouble finding any search results. When iterating
Conceptually, I would like to accomplish the following but have had trouble understand how
Conceptually, I would like to accomplish the following but have had trouble understand how
I had trouble searching for potential duplicates because I'm not sure what the correct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.