首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

sapi_windows_cp_conv

(PHP 7 >= 7.1.0)

sapi_windows_cp_conv — Convert string from one codepage to another

Description

代码语言:javascript
复制
string sapi_windows_cp_conv ( int|string $in_codepage , int|string $out_codepage , string $subject )

Convert string from one codepage to another.

Parameters

in_codepage

The codepage of the subject string. Either the codepage name or identifier.

out_codepage

The codepage to convert the subject string to. Either the codepage name or identifier.

subject

The string to convert.

Return Values

The subject string converted to out_codepage, or NULL on failure.

Errors/Exceptions

This function issues E_WARNING level errors, if invalid codepages are given, or if the subject is not valid for in_codepage.

See Also

  • sapi_windows_cp_get() - Get process codepage
  • iconv() - Convert string to requested character encoding

← php_strip_whitespace

sapi_windows_cp_get →

代码语言:txt
复制
 ? 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com