< Home - < Back

perl-Test-Mojibake


Information about the package, perl-Test-Mojibake, which is shipped with common Linux distributions. The perl-Test-Mojibake package is designed for, Check your source for encoding misbehavior.


Package Name:

perl-Test-Mojibake

Summary:

Check your source for encoding misbehavior

Description:

Many modern text editors automatically save files using UTF-8 codification. However, the perl interpreter does not expect it by default. Whilst this does not represent a big deal on (most) backend-oriented programs, Web framework (Catalyst, Mojolicious) based applications will suffer so-called Mojibake (literally: "unintelligible sequence of characters"). Even worse: if an editor saves BOM (Byte Order Mark, U+FEFF character in Unicode) at the start of a script with the executable bit set (on Unix systems), it won't execute at all, due to shebang corruption. Avoiding codification problems is quite simple: * Always use utf8/use common::sense when saving source as UTF-8 * Always specify =encoding utf8 when saving POD as UTF-8 * Do neither of above when saving as ISO-8859-1 * Never save BOM (not that it's wrong; just avoid it as you'll barely notice its presence when in trouble) However, if you find yourself upgrading old code to use UTF-8 or trying to standardize a big project with many developers, each one using a different platform/editor, reviewing all files manually can be quite painful, especially in cases where some files have multiple encodings (note: it all started when I realized that gedit and derivatives are unable to open files with character conversion tables). Enter the Test::Mojibake ;)

Architecture:

noarch

Version:

0.3

Release:

3.el6

Size:

23 k

Repository:

epel

From Repository:

Licence:

GPL+ or Artistic



Handy Yum Commands for perl-Test-Mojibake


Control the perl-Test-Mojibake package with the following handy commands outlined below.


Command

Description of Command

yum install perl-Test-Mojibake

This command will install perl-Test-Mojibake on the server.

yum remove perl-Test-Mojibake

This command will un-install perl-Test-Mojibake on the server. When you run this command, you will be asked if you are sure that you want to remove perl-Test-Mojibake, so you have to manually confirm that you want to do this.

yum -y remove perl-Test-Mojibake

This command will un-install perl-Test-Mojibake on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-Test-Mojibake when using the -y flag.

yum update perl-Test-Mojibake

This command will update perl-Test-Mojibake to the latest version. When you run this command, you will be asked if you are sure that you want to remove perl-Test-Mojibake, so you have to manually confirm that you want to do this.

yum -y update perl-Test-Mojibake

This command will update perl-Test-Mojibake to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove perl-Test-Mojibake when using the -y flag.

yum info perl-Test-Mojibake

This command will show you core information about the perl-Test-Mojibake package.

yum deplist perl-Test-Mojibake

This command will show you the dependencies for perl-Test-Mojibake. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update perl-Test-Mojibake

This command will check if there is an update waiting on perl-Test-Mojibake. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.