A utility for guessing the CCSID of files (based on file contents)

Related tags

Utility CcsidGuesser
Overview

CcsidGuesser

A utility for guessing the CCSID of files (based on file contents).

It can also fix CCSID tags and/or convert files to UTF-8!

Usage

Usage: java -jar ccsidguesser.jar  [options] <file>

    Valid options include:
        --show=top/topN/all: how many CCSID guesses to show (default is 'top1'), which shows the
                             top 1 result. A value of 'top' shows the top guess and some number
                             of very-near guesses.
        --format=<format>:   output format (default is 'ccsid'). See valid formats below.
        --convert=<mode>:    convert file to UTF-8 (default is 'none'). See valid modes below.
        --autofix            automatically and unapologetically change the CCSID tag of the file
                             to match the top guess for the file's contents (IBM i only)

    Valid formats include:
        ccsid:        Show the CCSID only
        enc:          Show the CCSID and encoding name

    Valid convert modes include:
         none :        perform no conversion
         inplace:      Convert the file in-place (creates a .bak with the old contents)
         dotutf8:      Create a new file that is UTF-8 (extension will be .utf8)

Installation

Simply download the latest ccsidguesser.jar from the Releases page.

Examples

Show the best guess CCSID for myfile.txt:

java -jar ccsidguesser.jar myfile.txt

Show the top 5 guesses for the CCSID and their corresponding encoding names:

java -jar ccsidguesser.jar myfile.txt  --show=top5 --format=enc

Automatically set myfile.txt's CCSID tag to match the best guess for the file's contents:

java -jar ccsidguesser.jar myfile.txt  --autofix

Convert myfile.txt to UTF-8 "in place":

java -jar ccsidguesser.jar myfile.txt --convert=inplace
You might also like...

"Pathfinder" - a small demo app made in Java, using Swing which shows an example implementation of a pathfinding algorithm based on BFS

"Pathfinder" is a small demo app made in Java, using Swing which shows an example implementation of a pathfinding algorithm based on BFS.

Mar 9, 2022

Parser of the table of contents file of the 1C platform syntax helper

Parser of the table of contents file of the 1C platform syntax helper

Парсер файла оглавления синтакс-помощника платформы 1С Что делает? Парсит вот это: Оглавление представляет собой файл без расширения, лежит в файле sh

Jan 27, 2022

A GUI-based file manager based on a Java file management and I/O framework using object-oriented programming ideas.

A GUI-based file manager based on a Java file management and I/O framework using object-oriented programming ideas.

FileManager A GUI-based file manager based on a Java file management and I/O framework using object-oriented programming ideas. Enables folder creatio

Feb 7, 2022

WordleCracker - This bot is designed for guessing 5 letter words for the trending game wordle

WordleCracker - This bot is designed for guessing 5 letter words for the trending game wordle

WordleCracker This bot is designed for guessing 5 letter words for the trending game wordle. The user informs about the status of the game by giving i

Nov 7, 2022

Spring boot backend for marble guessing game inspired by Squid Game TV series.

Back-end for marble guessing game inspired by Squid Game TV series. Built with Spring-boot and WebSocket.

Sep 3, 2022

contents based on article cross-team collaboration

camelk-team-collaboration This repository contains all the sources showcased in the following Red Hat Developers article: https://developers.redhat.co

Apr 27, 2022

Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen.

react-native-is-screen-captured-ios Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen. https://devel

Dec 30, 2022

Source code of APK-Explorer-Editor (AEE), an open-source tool to explore the contents of an installed APK!

Source code of APK-Explorer-Editor (AEE),  an open-source tool to explore the contents of an installed APK!

APK Explorer & Editor (AEE) APK Explorer & Editor, an open-source tool to explore the contents of an installed APK, is strictly made with an aim to in

Jan 8, 2023

Tokenisation of contents in Magnolia CMS

Tokenisation of contents in Magnolia CMS

Magnolia tokenizer magnolia-tokenizer-module is a module of Magnolia CMS that allows the tokenization of contents in NFT's. Contents can be assets and

Nov 1, 2022

IntelliJ Platform plugin that shows the file name of the currently open file in the status bar.

IntelliJ Platform plugin that shows the file name of the currently open file in the status bar. Clicking shows a list of recent files.

May 9, 2022

A simple program that is realized by entering data, storing it in memory (in a file) and reading from a file to printing that data.

A simple program that is realized by entering data, storing it in memory (in a file) and reading from a file to printing that data.

Pet project A simple program that is realized by entering data, storing it in memory (in a file) and reading from a file to printing that data. It can

Apr 28, 2022

Classpy is a GUI tool for investigating Java class file, Lua binary chunk, Wasm binary code, and other binary file formats.

Classpy is a GUI tool for investigating Java class file, Lua binary chunk, Wasm binary code, and other binary file formats.

Classpy Classpy is a GUI tool for investigating Java class file, Lua binary chunk, Wasm binary code, and other binary file formats. Inspiration This t

Dec 17, 2022

Java lib for monitoring directories or individual files via java.nio.file.WatchService

ch.vorburger.fswatch Java lib for monitoring directories or individual files based on the java.nio.file.WatchService. Usage Get it from Maven Central

Jan 7, 2022

evilzip lets you create a zip file(with password) that contains files with directory traversal characters in their embedded path.

evilzip logs 20210701 修改权限问题,让解压后的文件默认就有读写执行的权限。 About evilzip lets you create a zip file(with password) that contains files with directory traversal

Dec 11, 2022

A maven plugin to include features from jmeter-plugins.org for JMeterPluginsCMD Command Line Tool to create graphs, export csv files from jmeter result files and Filter Result tool.

A maven plugin to include features from jmeter-plugins.org for JMeterPluginsCMD Command Line Tool to create graphs, export csv files from jmeter result files and Filter Result tool.

jmeter-graph-tool-maven-plugin A maven plugin to create graphs using the JMeter Plugins CMDRunner from JMeter result files (*.jtl or *.csv) or using F

Nov 3, 2022

based utility mod

Urmomia Client urmomia strong, oa based clients strong Credits Devs Honsda - based creator Codex - based Kambing - based nekohax dev and antec player

Dec 31, 2022

A big, fast and persistent queue based on memory mapped file.

A big, fast and persistent queue based on memory mapped file.

Big Queue A big, fast and persistent queue based on memory mapped file. Notice, bigqueue is just a standalone library, for a high-throughput, persiste

Dec 30, 2022
Owner
Jesse Gorzinski
Jesse Gorzinski
jetbrick utility classes

jetbrick-commons This is an utility classes project for jetbrick framework. Documentation http://subchen.github.io/ Dependencies <dependency> <gro

Guoqiang Chen 20 Nov 15, 2022
Utility for developers and QAs what helps minimize time wasting on writing the same data for testing over and over again. Made by Stfalcon

Stfalcon Fixturer A Utility for developers and QAs which helps minimize time wasting on writing the same data for testing over and over again. You can

Stfalcon LLC 31 Nov 29, 2021
BFS utility

How to use Example (Usage for https://www.codingame.com/contests/spring-challenge-2021 usage) gameContext.getAllTree().stream().forEach(tree ->

Guillaume Rousseau 3 May 10, 2021
Simple, declarative mail utility for sending mails with default smtp server or with custom channels.

Introduction email-util is simple, declarative utility library. Key features are: declarative email building; text or html rendering; annotation suppo

Nijat Asgarzada 3 Oct 12, 2021
An utility to usage efficience ByteArray in Kotlin and Java.

An utility to usage efficience ByteArray in Kotlin and Java.

Cuong V. Nguyen 5 Sep 29, 2021
HMFF - A Hierarchical Mapping File Format

HMFF - A Hierarchical Mapping File Format This library provides a recursive key-value interpretation for your configuration files, with comment suppor

Justis R 3 Oct 23, 2021
Dfinder - a local file browser made with Java

Dfinder is a local file browser, which searches through files (according to the user's choice) and then generates a txt file containing the search results.

saad labriji 7 Oct 8, 2022
Java rate limiting library based on token/leaky-bucket algorithm.

Java rate-limiting library based on token-bucket algorithm. Advantages of Bucket4j Implemented on top of ideas of well known algorithm, which are by d

Vladimir Bukhtoyarov 1.7k Jan 8, 2023
Mindustry java mod that adds a redstone-like wire-based logic system, tailored for making circuits.

See Esoterum-Solutions for builds 0.0-1.2 A small Mindustry Java mod that adds a wire-based logic system tailored for building circuits. New content s

null 36 Oct 25, 2022
Pass variables into methods based off name, not position.

Named Arguments are a feature that many languages lack. Some call it Feature Envy. The Problem You have a menu() method that prints out a 5 option men

Xavier D 3 Jul 1, 2022