fix encoding
[GitHub/Stricted/Domain-Control-Panel.git] / lib / api / idna / idna_convert.class.php
CommitLineData
2aa91ff2
S
1<?php
2namespace dns\api\idna;
3
4// {{{ license
5
6/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
7//
8// +----------------------------------------------------------------------+
9// | This library is free software; you can redistribute it and/or modify |
10// | it under the terms of the GNU Lesser General Public License as |
11// | published by the Free Software Foundation; either version 2.1 of the |
12// | License, or (at your option) any later version. |
13// | |
14// | This library is distributed in the hope that it will be useful, but |
15// | WITHOUT ANY WARRANTY; without even the implied warranty of |
16// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17// | Lesser General Public License for more details. |
18// | |
19// | You should have received a copy of the GNU Lesser General Public |
20// | License along with this library; if not, write to the Free Software |
21// | Foundation, Inc., 51 Franklin St, Boston, MA 02110, United States |
22// +----------------------------------------------------------------------+
23//
24// }}}
25
26/**
27 * Encode/decode Internationalized Domain Names.
28 *
29 * The class allows to convert internationalized domain names
30 * (see RFC 3490 for details) as they can be used with various registries worldwide
31 * to be translated between their original (localized) form and their encoded form
32 * as it will be used in the DNS (Domain Name System).
33 *
34 * The class provides two public methods, encode() and decode(), which do exactly
35 * what you would expect them to do. You are allowed to use complete domain names,
36 * simple strings and complete email addresses as well. That means, that you might
37 * use any of the following notations:
38 *
39