PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Gianluca Zanferrari   AJAX to ISO   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: AJAX to ISO
Convert UTF encoded text to ISO character set
Author: By
Last change:
Date: 13 years ago
Size: 365 bytes
 

Contents

Class file image Download
<?php
require('class.ajax_to_iso.php');

$ajax2iso = new ajax_to_iso;

// string with special chars
$string = 'ë ç Ë Ç € ä ö ü';

echo(
'<p>These are the chars before converting: ' . $string . '</p>');

$string = $ajax2iso->to_iso($string);

// output de converted chars
echo('<p>These are the chars after converting: ' . $string . '</p>');
?>