UTF-8 to decimal NCRs (was Re: Help in a HURRY !^23)

From: Daniel Biddle (deltab@osian.net)
Date: Mon May 14 2001 - 06:32:42 EDT


On Mon, 14 May 2001, Dr.Keihany wrote:

> I'm looking for a software that can do this :
> [convert UTF-8 into HTML decimal NCRs]

Pipe the text through the following perl program:

#!/usr/bin/perl -p
use utf8;
s/./"&#".ord($&).";"/eg;

hope this helps,

-- 
Daniel Biddle <deltab@osian.net>



This archive was generated by hypermail 2.1.2 : Fri Jul 06 2001 - 00:18:17 EDT