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 7885593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:06:41+00:00 2026-06-03T05:06:41+00:00

well I have a simple text file where I have my textual data filled,

  • 0

well I have a simple text file where I have my textual data filled, which requires to be saved as utf-8, since I have some unicode symbols…

Well i just wrote a normal text file with notepad and saved as txt with utf-8

But i seem to be getting some kind of weird thing in front:
enter image description here

It’s some kind of weird dot which can’t even normally be pasted anywhere else.
I could maybe try removing the first symbol, but I don’t think that’s a real solution, besides I’m not sure if it will always come up…

This is the code part:

FileInputStream fstream = new FileInputStream(fileName);
        // Get the object of DataInputStream
        DataInputStream in = new DataInputStream(fstream);
        BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String values;

        //Read File Line By Line

        System.out.println("Generating queries from: " + fileName);
        String fields = br.readLine(); 
        System.out.println("The fields are: " + fields); 

Anyone came accross this and knows a solution?

Thanks in advance.

  • 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-03T05:06:42+00:00Added an answer on June 3, 2026 at 5:06 am

    It is probably a Unicode Byte Order Mark (BOM). Some text editors (on Windows) start a UTF-8 text file with a BOM to flag that it is Unicode.

    If you need to deal with this in Java, test to see if the first Unicode codepoint you read from the file is 0xffef, and if it is then remove it.

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

Sidebar

Related Questions

I have a text file which has the following data {i:1, j:2} {k:3, l:10}
I inherited a data-storage which was using simple text-files to save documents. Documents had
I have successfully been able to transform a simple xml file with data to
Well, I have a simple question, at least I hope its simple. I was
Well, i have written a simple python program that parses HTML with HTMLParser. Here
Well, just to keep it simple: I have a webform. On it a button
Well, the question is kinda simple. I have a object defined as: public class
I have been working on a simple text editor in Cocoa/Objective-C for a practice
Hi I have a simple browser that sends a request to yahoo.com which the
I am currently coding an app which calls a text file from a store,

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.