FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Encoding Utility

v1.0.3 Public

Encoding Utility

This is a ColdBox Module to assist in resolving character encoding issues. For example, when a legacy database supports only 7-bit ASCII, and the modern web application receives user content in UTF-8.

Requirements

  • Lucee 5+
  • ColdBox 4+
  • Java 8+

Installation

Install using CommandBox: box install encoding-utility

Usage

Within the component you'd like to make use of the Encoding Utlity, have WireBox inject an instance for you from the module's namespace:

property name="encutil" inject="[email protected]";

These are the methods implemented:

  • substitute(string input) Returns the content with reasonable substitutions made. For example, "é" becomes "e".
  • substituteForJSON(string input) Performs substitutions, being conscious of JSON serialization.
  • isBasicLatin(string input) Tests the input for any code points above 127.
  • getStringDetails(string input) Returns a structure of useful information.

License

See the LICENSE file for license rights and limitations (MIT).

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
1.0.3 Mar 14 2017 01:21 PM Mar 14 2017 01:21 PM
Version History
1.0.2 Mar 02 2017 08:29 AM Mar 02 2017 08:29 AM
1.0.1 Feb 28 2017 07:09 PM Feb 28 2017 07:09 PM
1.0.0 Feb 28 2017 07:04 PM Feb 28 2017 07:04 PM

 

No collaborators yet.
     
  • Feb 28 2017 07:04 PM
  • Mar 14 2017 01:21 PM
  • 684
  • 0
  • 518