To go with Lukas's Perl code, I'll provide a C version, not really tested
either, with ICU, to give him a choice. No error checking etc., just to give
the idea. If you want UTF-16 you'll need to use the macros in
unicode/utf16.h to generate surrogate pairs properly.
#include stdio.h
#include
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 [EMAIL PROTECTED]
2 matches
Mail list logo