RE: Help in a HURRY !!!!!!!!!!!!!!!!!!!!!!!

2001-05-15 Thread Yves Arrouye
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

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

2001-05-14 Thread Daniel Biddle
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]>

Re: Help in a HURRY !!!!!!!!!!!!!!!!!!!!!!!

2001-05-14 Thread Lukas Pietsch
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

RE: Help in a HURRY !!!!!!!!!!!!!!!!!!!!!!!

2001-05-14 Thread Marco Cimarosti
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