Commit 6132eabe authored by mso's avatar mso

Version 0.6.0 - 2008-01-08

git-svn-id: svn+ssh://85.214.81.201/srv/svn/repos/idna_convert/trunk@3157 35e3bc58-21ef-11dd-9788-dfbd14258a26
parent 4222d158
......@@ -4,7 +4,7 @@
* *
* http://idnaconv.phlymail.de mailto:phlymail@phlylabs.de *
*******************************************************************************
* (c) 2004-2007 phlyLabs, Berlin *
* (c) 2004-2008 phlyLabs, Berlin *
* This file is encoded in UTF-8 *
*******************************************************************************
......@@ -34,17 +34,15 @@ arrays. The default format is UTF-8. For setting different encodings, you can
call the method setParams() - please see the inline documentation for details.
ACE strings (the Punycode form) are always 7bit ASCII strings.
ATTENTION: We no longer supply the PHP5 version of the class. It is not
necessary for achieving a successfull conversion, since the supplied PHP code is
compatible with both PHP4 and PHP5. We expect to see no compatibility issues
with the upcoming PHP6, too.
ATTENTION: As of version 0.6.0 of this class it is written in the OOP style of PHP5.
Since PHP4 is no longer actively maintained, you should switch to PHP5 as fast as
possible.
We expect to see no compatibility issues with the upcoming PHP6, too.
Files
-----
idna_convert.class.php - The actual class
idna_convert.create.npdata.php - Useful for (re)creating the NPData file
npdata.ser - Serialized data for NamePrep
example.php - An example web page for converting
transcode_wrapper.php - Convert various encodings, see below
uctc.php - phlyLabs' Unicode Transcoder, see below
......@@ -52,8 +50,6 @@ ReadMe.txt - This file
LICENCE - The LGPL licence file
The class is contained in idna_convert.class.php.
MAKE SURE to copy the npdata.ser file into the same folder as the class file
itself!
Examples
......@@ -103,14 +99,6 @@ foreach (file('ucs4-domains.txt') as $line) {
}
NPData
------
Should you need to recreate the npdata.ser file, which holds all necessary translation
tables in a serialized format, you can run the file idna_convert.create.npdata.php, which
creates the file for you and stores it in the same folder, where it is placed.
Should you need to do changes to the tables you can do so, but beware of the consequences.
Transcode wrapper
-----------------
In case you have strings in different encoding than ISO-8859-1 and UTF-8 you might need to
......
......@@ -27,57 +27,16 @@ if (isset($_REQUEST['lang'])) {
<meta name="author" content="phlyLabs">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
color:black;
background:white;
font-size:10pt;
font-family:Verdana, Helvetica, Sans-Serif;
}
body, form {
margin:0px;
}
form {
display:inline;
}
input {
font-size:8pt;
font-family:Verdana, Helvetica, Sans-Serif;
}
#mitte {
text-align:center;
vertical-align:middle;
}
#round {
background-color:rgb(230, 230, 240);
border:1px solid black;
text-align:center;
vertical-align:middle;
padding:10px;
}
.thead {
font-size:9pt;
font-weight:bold;
}
#copy {
font-size:8pt;
color:rgb(60, 60, 80);
}
#subhead {
font-size:8pt;
}
#bla {
font-size:8pt;
text-align:left;
}
body { color:black;background:white;font-size:10pt;font-family:Verdana, Helvetica, Sans-Serif; }
body, form { margin:0px; }
form { display:inline; }
input { font-size:8pt;font-family:Verdana, Helvetica, Sans-Serif; }
#mitte { text-align:center;vertical-align:middle; }
#round { background-color:rgb(230, 230, 240);border:1px solid black;text-align:center;vertical-align:middle;padding:10px; }
.thead { font-size:9pt;font-weight:bold; }
#copy { font-size:8pt;color:rgb(60, 60, 80); }
#subhead { font-size:8pt; }
#bla { font-size:8pt;text-align:left; }
</style>
</head>
<body>
......@@ -150,7 +109,7 @@ input {
</td>
</tr>
</table><br />
<span id="copy">Version used: 0.5.1; (c) <a href="http://phlylabs.de">phlyLabs</a> 2004-2007</span>
<span id="copy">Version used: 0.6.0; (c) <a href="http://phlylabs.de">phlyLabs</a> 2004-2008</span>
</div>
</td>
</tr>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment