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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:08:06+00:00 2026-06-09T21:08:06+00:00

I have ��� chars after each time I save file in windows for some

  • 0

I have ��� chars after each time I save file in windows for some folders. And for some other folders – all is fine. I can’t find difference between folders where everything is fine and folders where files saving with bad endings. So I have to run dos2unix in my linux virtual machine on modified files every time. Since these files is javascript – it’s very annoying!

Help me, where to dig? How to avoid appearing of ��� chars at the end of file?

:set fileencoding=utf-8 does not help.

Usually vim has for dos files – [dos] label at the bottom of buffer window – in my case all is fine, and no [dos] label there.

  • 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-09T21:08:07+00:00Added an answer on June 9, 2026 at 9:08 pm

    This looks more like a file format problem than encoding. I recommend adding this to your ~/_vimrc:

    set fileformat=unix
    set fileformats=unix,dos
    set nobinary
    

    You can find more details in :help fileformat

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

Sidebar

Related Questions

Have an array of chars like char members[255]. How can I empty it completely
I have a UILabel that displays some chars. Like x, y or rpm. How
I have this function that converts all special chars to uppercase: function uc_latin1($str) {
I have a php script validation that looks for some special chars and deletes
I have a $text to strip off all non-alphanumeric chars, replace multiple white spaces
I have, after some help ( MSChart - Forcing a line chart to draw
I did some homework and while I can answer all below questions about exporting
I have 145064642 chars long HTML String which I am trying to print. When
I have non-ascii chars in velocity template files. And when processed they are garbled.
I have problems decoding several Chars. In the Database, the Chars Ä, Ö and

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.