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
#include
#define L
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]>
Dear Dr Keihany,
I'm afraid I didn't quite understand if you want your output in actual
Unicode (UTF-16?)
or as Ascii text with html-style numeric entities ("" format). In
the latter case,
a simple Perl script might do the job. For instance:
use utf8;
open INFILE, "test2.txt";
while ($On
Dr. Keihany wrote:
> Text in Unicodes : ( for example : [ u [...]
> Please help me in a hurry ! [...]
Reply to these questions, IMMEDIATELY!!
1) What operating system are you using!?!?!?
2) What do you mean by "Unicodes"!?!?!?
_ Marco
4 matches
Mail list logo