Skip to content
Guess character encoding in your filenames
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
fndec.go Output {file} 'type' alongside encoding May 27, 2018


Created for Artefactual Systems Inc.

Guess filename encodings... based on @richardlehane's characterize golang package.

Get up and running

Install and update dependencies:
go get -u

Run release script (if you are creating releases for multiple platforms):

Otherwise run go build or go install to create a single binary on your machine. The binary will be created in the current folder or $GOBIN.

Run command (or create alias):
path/to/release/your-release-version -file path/to/filename


A handful of binaries for different operating systems are created on release and are available here:


    ross-spencer@artefactual:~:$ fndec -h
    Usage of fndec:
      -file string
    	    File to read the filename from.
    	    Return version information.

Example output

alt text

You can’t perform that action at this time.