Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Romans Malinovskis  >  Charset to unicode translating  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example
Class: Charset to unicode translating
Author: By
Last change:
Date: 14 years ago
Size: 304 bytes
 

Contents

Class file image Download
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>
<?
 
# utf class example

require'utf8.php';
$utf=new utf;
$utf->loadmap('cp1251.tab','cp');
# The next line may be corrupted... :(
echo $utf->cp2utf("Russian(CP1251): Ophber, lhp!!\n",'cp');
?>
</body>