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

uniencode_lib

Proto type

string uniencode_lib (string str [, string start [, string end ] ] )

Description

CP949 또는 EUC-KR 의 문자셋을 NATIVE UNICODE 로 변환을 한다.

start 는 NATIVE UNICODE 의 hex 값 앞쪽의 문자열을 지정하며, end 는 hex 값 뒤의 문자열을 의미한다. 이는 NATIVE UNICODE 의 경우 \uD55C 와 같이 표현을 하는데 여기서는 \u 가 start 가 된다.

uniencode_lib 함수에서는 start 와 end 가 지정이 되지 않았을 경우 기본값으로 start 는 "\u" 로 end 는 NULL 값을 가진다.

Arguments

Example

<?php
$a = "한글a 와 똠방각하";

# return "\uD55C\uAE00a\uC640 \uB620\uBC29\uAC01\uD558"
$a = uniencode_lib($a);

$a = "한글a 와 똠방각하";

# return "U-D55C;U-AE00;aU-C640; U-B620;U-BC29;U-AC01;U-D558;"
$a = uniencode_lib($a,"U-",";");
?>

See also

Previousncrdecode_libNextunidecode_lib

Last updated 5 years ago

Was this helpful?

unidecode_lib ()