delphi中关于UTF-8相关函数

原文:http://hi.baidu.com/qiujunnb/blog/item/82492fdd0160cddb8c1029f1.html

 

AnsiToUtf8 function

Converts a string encoded in Ansi to UTF-8.

PUCS4Chars function

Converts a UCS4 string to a null-terminated array of UCS4 characters.

StringToWideChar function

Returns a UNICODE string from an AnsiString.

UCS4StringToWideString function

Converts a string of 4-byte Unicode characters into a WideString value.

UnicodeToUtf8 function

Converts a string of Unicode characters into a UTF-8 string.

UTF8Decode function

Converts a UTF8 string to a Unicode string (WideString).

UTF8Encode function

Converts a WideString value to a UTF8 string.

Utf8ToAnsi function

Converts a UTF8 string to a string of Ansi characters.

Utf8ToUnicode function

Converts a string of UTF-8 characters to a Unicode string.

WideCharLenToString function

Converts Unicode characters to single or multi byte character data.

WideCharLenToStrVar procedure

WideCharLenToStrVar converts Unicode characters to single or multi byte character data.

WideCharToString function

Converts null-terminated Unicode string to single or multi byte character data.

WideCharToStrVar procedure

Converts Unicode string to a single or multi byte character data.

WideStringToUCS4String function

Converts a WideString value to a string of 4-byte Unicode characters.

<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值