Hi CM!

On Thursday 26 Nov 2009 18:42:30 CM wrote:
> > It's "Shlomi" (English spelling) - not "Schlomi" (German Spelling). Many
> > people make this mistake.
> 
> My apologies.
> 
> > What does "cat /etc/debian_version" say?
> 
> 4.0
> 
> > > I hit on an idea that each text file coming from different sources will
> > > have the Unicode UTF8 hex string of all the special characters.
> > > See here.http://lwp.interglacial.com/appf_01.htm
> > >
> > > For example the Danish A-ring ( A with a ring on top ) in the text file
> > > will be written as : 0xc30x85. This was found to be acceptable by all
> > > parties.
> > >
> > > Now the question is,  I will have a text file with lots of English
> >
> > You can use regexes to match specific characters. But generally your
> > converter (e.g: of
> > ahttp://en.wikipedia.org/wiki/Lightweight_markup_language) wil ldo that
> > for you. Do you need to guess the language of the document? I still don't
> > understand exactly what you want to do.
> 
> Lets say a line contains this text in a file.
> 
> "This is a line of text containing  0xc30x86n exotic character".
> 
> How can I read this line from a file and evaluate this on the fly to:
> 
> "This is a line of text containing  AEn exotic character".( AE here is
> the fused AE in Danish)
> 

If I understand you correctly, then you can use the chr() built-in function:

http://perldoc.perl.org/functions/chr.html

Possibly with some regular expressions' patterns match.

Regards,

        Shlomi Fish

> 
> Hope this explanation was clear!
> Chandra
> 

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Original Riddles - http://www.shlomifish.org/puzzles/

Chuck Norris read the entire English Wikipedia in 24 hours. Twice.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to