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

  • SEARCH
  • Home
  • 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 8043339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:52:14+00:00 2026-06-05T04:52:14+00:00

I have a .csv file generated by Excel that I got from my customer.

  • 0

I have a .csv file generated by Excel that I got from my customer. My software has to open and parse it in java. I’m using universalchardet but it did not detect the encoding from the first 1,000 bytes of the file.

Within these 1,000 first bytes, there is a sequence that should be read as Boîte, however I cannot find the correct encoding to use to convert this file to UTF-8 strings in java.

In the file, Boîte is encoded as 42,6F,94,74,65 (read using a hex editor). B, o, t and e are using the standard latin encoding with 1 byte per character. The î is also encoded on only one byte, 0x94.

I don’t know how to guess this charset, none of my searches online yielded relevant results.

I also tried to use file on that file:

$ file export.csv
/Users/bicou/Desktop/export.csv: Non-ISO extended-ASCII text, with CR line terminators

However I looked at the extended-ASCII charset, the value 0x94 stands for ö.

Have you got other ideas for guessing the encoding of that file?

  • 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-06-05T04:52:17+00:00Added an answer on June 5, 2026 at 4:52 am

    This was Mac OS Roman encoding. When using the following java code, the text was properly decoded:

    InputStreamReader isr = new InputStreamReader(new FileInputStream(targetFileName), "MacRoman");
    

    I don’t know how to delete my own question. I don’t think it is useful anymore…

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

Sidebar

Related Questions

i have csv files, java app and database, i read csv file from my
I have a script that generates a csv file using the following code: header('Content-type:
I have generated a csv file in open office but when i open it
I'm using VBA to do some further formatting to a generated CSV file that's
Problem with german umlauts in generated CSV file using Grails Hi, I have a
I have been trying to generate data in Excel. I generated .CSV file. So
I am trying to create a CSV file from a dynamically generated table.I have
I have CSV file and Macro in VBA. I want to open CSV file
I have .csv file that contain 2 columns delimited with , . file.csv word1,word2
I have a CSV file with several entries, and each entry has 2 unix

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.