【发布时间】:2013-06-17 10:18:04
【问题描述】:
我正在阅读有关 Perl 的 Encode 和 utf8 的信息。
文档说:
$octets = encode_utf8($string);
相当于
$octets = 编码("utf8", $string) 。
$string 中的字符以 Perl 的内部格式编码,并且 结果作为八位字节序列返回。
我不知道这意味着什么。无论如何,Perl 中的字符串不是八位字节序列(即字节)吗?
那么有什么区别:
$string 和 $octets?
【问题讨论】: