PHP mod_korean extension Reference
  • Introduction
  • Installation
  • APIs
    • Check Functions
      • check_filename_lib
      • check_htmltbale_lib
      • check_uristr_lib
      • get_microtime_lib
      • human_fsize_lib
      • is_email_lib
      • is_hangul_lib
      • is_iis_lib
      • is_url_lib
      • is_windows_lib
      • buildno_lib
      • version_lib
    • Filesystem Functions
      • filelist_lib
      • getfile_lib
      • getfiletype_lib
      • putfile_lib
      • readfile_lib
      • pcregrep_lib
    • HTML Functions
      • agentinfo_lib
      • autolink_lib
      • get_hostname_lib
      • movepage_lib
      • perror_lib
      • pnotice_lib
    • Charset Functions
      • ncrencode_lib
      • ncrdecode_lib
      • uniencode_lib
      • unidecode_lib
      • utf8encode_lib
      • utf8decode_lib
      • substr_lib
      • postposition_lib
    • Image Functions
      • imgresize_lib
    • Mail Functions
      • mailsource_lib
      • sockmail_lib
Powered by GitBook
On this page
  • Proto type
  • Description
  • Arguments
  • Example
  • See also

Was this helpful?

  1. APIs
  2. Charset Functions

utf8decode_lib

Proto type

string utf8decode_lib(string str, string type)

Description

UTF8 문자셋을 type 에 지정된 문자셋으로 변환을 한다. type 에는 CP949, EUC-KR, BIG5, SJIS 를 지원한다. EUC-KR 로 지정을 했을 경우에는 EUC-KR 범위외의 2byte 문자를 NCR code 로 변환하여 반환한다.

Arguments

(string) str - input string
(string) type - CP949, EUC-KR, BIG5, SJIS

Example

<?php
$str = "한글a와 똠방각하";
$str = utf8encode_lib($str);
echo utf8decode_lib ($str, 'CP949')."\n";
echo utf8decode_lib ($str, 'EUC-KR')."\n";
?>

See also

Previousutf8encode_libNextsubstr_lib

Last updated 5 years ago

Was this helpful?

iconv