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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:01:32+00:00 2026-05-14T07:01:32+00:00

From the answers to this question it appears there’s a file somewhere on our

  • 0

From the answers to this question it appears there’s a file somewhere on our server that’s been saved with the wrong encoding.

I’ve seen this happen before – most often when pasting from Word into Visual Studio, when “smart quotes” can interfere with Visual Studio’s encoding settings when saving the file.

Thing is – the problem I’m having involves 20-30 different script files, include files and so on (hey, that was how we kept it modular back in the day…) and I really don’t want to open every one of them in Visual Studio and check the file encodings individually.

Is there any way I can analyze a folder tree full of files and spit out a list of each filename along with the text encoding used to save the file? (Or – if encodings aren’t clearly specified – work out what encoding Microsoft IIS thinks was used to save the 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-05-14T07:01:32+00:00Added an answer on May 14, 2026 at 7:01 am

    A textfile’s encoding is just how it was intended to be interpreted, so you cannot detect this in a reliable way. You can probably detect UTF-8 and 16-bit unicode, but there’s no way distinguishing between ISO-8859-1/2/3/4 etc… (Windows-1250/1251/1252 etc.).

    If your document contains “weird” quotes, other than “” or ”, you can simply find these, and replace them manually.

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

Sidebar

Related Questions

From this question & the answers - What is the correct answer for cout
I have been looking at the answer to this question: Pulling details from response
Seems like this might be easy, but from reading other SO answers there are
Note: this appears to have been fixed in Roslyn This question arose when writing
I am using the accepted answer from this question . The relevant code is
This question arose from the discussion in the comments of this answer . First,
This question is spawned from the partial answer to JSF2: why does empty test
I am trying to integrated linkedIn using this question answer Posting LinkedIn message from
I have this old question but no answer works for me from online, the
This is a CSS related question, I got one good answer from my previous

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.