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

utf8encode_lib

Proto type

string utf8encode_lib (string str [, string charset])

Description

charset 으로 지정된 2 byte 문자셋을 UTF8 로 변환한다.

Arguments

(stirng) str - input string
(string) charset
    지정되지 않으면, 기본값으로 EUC-KR 이다. 지원되는 charset 은 EUC-KR, BIG5, SJIS
    이다. KSX 1001 범위외의 문자 역시 EUC-KR 로 지정하여 내부적으로 처리가 가능 하므로,
    한국어 처리를 ECU-KR 로 한다고 생각을 하면 된다.

Example

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

See also

Previousunidecode_libNextutf8decode_lib

Last updated 5 years ago

Was this helpful?

utf8decode_lib ()