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

unidecode_lib

Proto type

string unidecode_lib (string str , string to_charset [, string start, string end] )

Description

UNICODE 문자를 EUC-KR, CP949 문자셋으로 변환을 한다.

to_charset 은 변환할 문자셋을 지정하며, EUC-KR 과 CP949 로 지정을 할 수 있다. EUC-KR 로 지정을 했을 경우에는 EUC-KR 범위외의 2 byte 문자들을 NCR 코드로 변환해서 출력을 한다.

start 와 end 는 uniencode_lib() 함수와 동일하다.

Arguments

Example

<?php
$a = "U+D55C;U+AE00;aU+C640; U+B620;U+BC29;U+AC01;U+D558;";

# return "한글a와 &#46624;방각하"
$a = unidecode_lib($a,"euc-kr","U+",";");

$a = "U-D55C;U-AE00;aU-C640; U-B620;U-BC29;U-AC01;U-D558;";

# return "한글a와 똠방각하"
$a = unidecode_lib($a,"cp949","U-",";");
?>

See also

Previousuniencode_libNextutf8encode_lib

Last updated 5 years ago

Was this helpful?

uniencode_lib ()