a
     g                     @   s$   e e d ddZe e d ddZdS ))textreturnc                 C   s   |  dddS )uL  
    Convert TIS-620 to UTF-8

    :param str text: TIS-620 encoded text
    :return: UTF-8 encoded text
    :rtype: str

    :Example:
    ::

        from pythainlp.util import tis620_to_utf8

        tis620_to_utf8("¡ÃÐ·ÃÇ§ÍØµÊÒË¡ÃÃÁ")
        # output: 'กระทรวงอุตสาหกรรม'
    cp1252ignoreztis-620encodedecoder    r	   A/usr/local/lib/python3.9/dist-packages/pythainlp/util/encoding.pytis620_to_utf8   s    r   c                 C   s   |  ddS )uB  
    Encode text with IDNA, as used in Internationalized Domain Name (IDN).

    :param str text: Thai text
    :return: IDNA-encoded text
    :rtype: str

    :Example:
    ::

        from pythainlp.util import to_idna

        to_idna("คนละครึ่ง.com")
        # output: 'xn--42caj4e6bk1f5b1j.com'
    idnazutf-8r   r   r	   r	   r
   to_idna   s    r   N)strr   r   r	   r	   r	   r
   <module>   s   