Thaana conversions class for PHP 5 - v0.2
Functions exposed by the class:
- convertUtf8ToUnicodeIntegers()
Convert UTF-8 data to Unicode character integer representations
- convertUtf8ToAscii()
Convert UTF-8 data to Ascii
- convertEntitiesToUnicodeIntegers()
Convert HTML Unicode entitied string to Unicode Integer characters array
- convertEntitiesToUtf8
Convert HTML Unicode entities to UTF-8
- convertEntitiesToAscii()
Convert HTML Unicode entities to Dhivehi Ascii equivalents
- convertUnicodeIntegersToUtf8()
Convert Unicode Integer array to UTF
- convertUnicodeIntegersToEntities()
Convert Unicode char integers to HTML entities
- convertUnicodeIntegersToAscii()
Convert Unicode char integers to Ascii
- convertAsciiToUtf8()
Convert Ascii Thaana to UTf-8
- convertAsciiToUnicodeEntities()
Convert Ascii Thaana to Unicode HTML entities
- convertAsciiToUnicodeIntegers()
Convert Ascii Thaana to an array of Unicode integers
Usage:
<?php
$thaana = new Thaana_Conversions();
echo $thaana->convertEntitiesToAscii('ދިވެހި');
echo $thaana->convertAsciiToUtf8('rWacje');
?>
Download:
- Thaana_Conversions.zip (v0.2, 3KB)
Drop me a line if you run into trouble with any of the functionality or have comments/queries. Enjoy



Maldivians who use Firefox would be aware that certain Dhivehi websites, such as Miadhu Online, no longer display the Thaana fonts correctly when they switched to the recently released version 3 of the popular browser. I would like to review the issue for
Tracked: Aug 18, 10:15