RTF and UTF-8 files in Perl



1. How do I open a RTF file as input in Perl and read formatted
ASCII text from it?

2. How do I open a UTF-8 (Unicode) file as output in Perl and
write Unicode text to it?

--
Thanks and Regards.
.



Relevant Pages

  • Re: Perl opting for double-byte chars?
    ... sure Unicode has something to do with your problem, ... Without knowing the version of Perl you're using and the platform ... The UTF-8 encoding uses variable-length character ... perldoc Encode ...
    (comp.lang.perl.misc)
  • Re: Guide for dealing with alternate character sets?
    ... In Perl 5.8 representation, the native text "character set" internally ... is Unicode, or at least a subset of it, irrespective of the external ... (That's excluding the situation where you read an external encoding, ... > machinery for converting to UTF-8? ...
    (comp.lang.perl.misc)
  • Re: How to NOT use utf8.
    ... I had some indications that my problems are due to Unicode. ... perl totaly Unicode unaware. ... Since my script is supposed to run under Windows, ... in Carp::format_arg function, called by cluck, jumps to other chunk of code. ...
    (comp.lang.perl.misc)
  • How to decode JavaScripts encodeURIComponent in Perl.
    ... who struggle with the Perl language and all it's myriad idiosyncracies. ... character sets, but I acknowledge that if you *are* dealing with what I ... they find they can't use their own native character-set in a URI, ... So now we have Unicode -- a vastly superior term, to some people, ...
    (comp.lang.perl.misc)
  • Re: Creating UNICODE filenames with PERL 5.8
    ... I didn't clue in from the documentation ... It comes back with a two character ... Do you know of a method of reading directories to get the UNICODE file ... >> I have been having distinct trouble creating file names in PERL ...
    (comp.lang.perl.misc)