This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/10152894/php-replacing-special-characters-like-a-a-e-e?answertab=votes#tab-top | |
// PHP.net User notes | |
<?php | |
$string = "ʿABBĀSĀBĀD"; | |
echo iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $string); | |
// output: [nothing, and you get a notice] | |
echo iconv('UTF-8', 'ISO-8859-1//IGNORE', $string); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -regex '.*html$' -exec sed -i 's/\xEF\xBB\xBF//' '{}' \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
include('imagecow_loader.php'); | |
use Fol\Loader; | |
use Imagecow\Image; | |
Loader::setLibrariesPath(__DIR__); |