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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:19:39+00:00 2026-05-12T22:19:39+00:00

Does anyone know of a Windows app that can scan through a directory and

  • 0

Does anyone know of a Windows app that can scan through a directory and check which scripts are/aren’t encoded as a specified charset (UTF-8 in this case)? I could do it manually, but that could take a while and is quite error prone!

  • 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-12T22:19:39+00:00Added an answer on May 12, 2026 at 10:19 pm

    UTF-8 isn’t a character set, it’s an encoding for Unicode characters. And, since this is not programming related, I’m nudging it over to superuser.

    If you do want to write a program for detecting those sequences, it’s pretty easy:

    Illegal UTF-8 initial sequences
    
    UTF-8 Sequence       Reason for Illegality 
    10xxxxxx             illegal as initial byte of character (80..BF) 
    1100000x             illegal, overlong (C0 80..BF) 
    11100000  100xxxxx   illegal, overlong (E0 80..9F) 
    11110000  1000xxxx   illegal, overlong (F0 80..8F) 
    11111000  10000xxx   illegal, overlong (F8 80..87) 
    11111100  100000xx   illegal, overlong (FC 80..83) 
    1111111x             illegal; prohibited by spec 
    

    Then, provided the first octet is legal, just remember that the number of octets forming a code point can be obtained by counting the number of 1 bits before the first 0 bit.

    For example, 11110xxx is the start of a 4-octet sequence so you should skip ahead 4 octets once you’ve established its legality.

    The other thing to do is ensure that all continuation octets start with 10.

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

Sidebar

Related Questions

Does anyone know exactly what Windows XP does when you click Repair on a
Does anyone know how to disable the Windows CE Console on a Windows Mobile
Does anyone know of a better GUI client for displaying Windows System Monitor log
Does anyone know any good and free .NET Windows Controls Library
does anyone know is there a way to implement Windows Live ID authentication into
Does anyone know a method to programmatically close the CD tray on Windows 2000
Does anyone know how to use the Raw Input facility on Windows from a
Does anyone know how to connect to an existing VPN from a .NET app
Does anyone know of any sample code for restoring a window's position and size
Does any one know a good way to do remote procedure calls in windows

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.