Re: Re: 提个问题,什么工具可以将 字和和其UTF-8编码相互转换?
我也不知道为什么会这样,8(,单独写成一个程序就好了:
#! /usr/bin/perl -w
while (<>) {
s/(.)/printf("&#%s;",ord($1))/ge;
}
printf("\n")
On Wed, Apr 07, 2004 at 10:35:36AM +0800 or thereabouts, gaochao wrote:
> ># PERLIO=:utf8 perl -pe 's/(.)/printf("&#%s;",ord($1))/ge'
> 没有那个文件或目录
> 没有那个文件或目录111111111
>
> 可以将utf8的文字转换成编码,但是怎么样做才能去掉每行后面多出来的 1 呢?
>
>
>
> --
> To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>
--
Regards,
Tchaikov
Reply to: