How To Install libcatalyst-plugin-unicode-perl on Ubuntu 18.04

In this tutorial we learn how to install libcatalyst-plugin-unicode-perl on Ubuntu 18.04. libcatalyst-plugin-unicode-perl is Unicode support for Catalyst (old style)

Introduction

In this tutorial we learn how to install libcatalyst-plugin-unicode-perl on Ubuntu 18.04.

What is libcatalyst-plugin-unicode-perl

libcatalyst-plugin-unicode-perl is:

At request time Catalyst::Plugin::Unicode decodes all params from UTF-8 octets into a sequence of logical characters. On response, encodes body into UTF-8 octets.

Note that this plugin tries to autodetect if your response is encoded into characters before trying to encode it into a byte stream. This is bad as sometimes it can guess wrongly and cause problems.

As an example, latin1 characters such as é (e-accute) will not actually cause the output to be encoded as utf8.

Using Catalyst::Plugin::Unicode::Encoding (part of Catalyst 5.90042, packaged in libcatalyst-perl) is much more recommended, and that also does additional things (like decoding file upload filenames and request parameters which this plugin does not).

This plugin should be considered deprecated, but is maintained as a large number of applications are using it already.

Catalyst is an elegant Model-View-Controller web application framework written in Perl.

There are three methods to install libcatalyst-plugin-unicode-perl on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcatalyst-plugin-unicode-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libcatalyst-plugin-unicode-perl using apt-get by running the following command:

sudo apt-get -y install libcatalyst-plugin-unicode-perl

Install libcatalyst-plugin-unicode-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcatalyst-plugin-unicode-perl using apt by running the following command:

sudo apt -y install libcatalyst-plugin-unicode-perl

Install libcatalyst-plugin-unicode-perl Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libcatalyst-plugin-unicode-perl using aptitude by running the following command:

sudo aptitude -y install libcatalyst-plugin-unicode-perl

How To Uninstall libcatalyst-plugin-unicode-perl on Ubuntu 18.04

To uninstall only the libcatalyst-plugin-unicode-perl package we can use the following command:

sudo apt-get remove libcatalyst-plugin-unicode-perl

Uninstall libcatalyst-plugin-unicode-perl And Its Dependencies

To uninstall libcatalyst-plugin-unicode-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libcatalyst-plugin-unicode-perl

Remove libcatalyst-plugin-unicode-perl Configurations and Data

To remove libcatalyst-plugin-unicode-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcatalyst-plugin-unicode-perl

Remove libcatalyst-plugin-unicode-perl configuration, data, and all of its dependencies

We can use the following command to remove libcatalyst-plugin-unicode-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcatalyst-plugin-unicode-perl

References

Summary

In this tutorial we learn how to install libcatalyst-plugin-unicode-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.