homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

Linux file system with column to show file encodings?
JAB Creations

 2:28 pm on Aug 1, 2010 (gmt 0)

I keep finding files being converted to encodings other then Unicode however XP's Windows Explorer does not have a detail column for showing the encoding of files in a directory. For those who are not sure what I'm talking about open a folder on XP (I do not use Vista or 7 and 90% of what I use in XP was removed in Vista and 95% removed in 7), click the view menu at the top, and then choose 'details' if it's not already set. In the details view of a folder if you right-click on the columns (Name, size, type, date modified in example) you can customize the columns however there are no columns for viewing the file encoding the files were saved as.

I'm wondering if there is a program (not the console/terminal) in Linux regardless of distro that would allow me to quickly/visually scan my directories for non-unicode code/text files?

- John



 4:23 am on Aug 2, 2010 (gmt 0)

The encoding type of a text file is sometimes indicated with the Byte order Mark at the beginning of the file. If this BOM is present, it is a Unicode file, otherwise the encoding type is not known. The BOM is not always present in Unicode encoded files (it is added by some editors but not by others) and therefore adequate encoding determination may not be possible in all situations.

A Linux type non-Unicode file search utility could consist of a routine which opens each file and checks those first file bytes. Don't know of a utility which does this out of the box though.


 6:20 am on Aug 2, 2010 (gmt 0)

you might be able to do something with the enca [freshmeat.net] utility.
here is the enca Linux man page [linux.die.net].

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved