Re: Encoding problem

2012-07-18 Thread Dermot
>> >> That's done the trick. Thank you Shlomi. > > You're welcome. Next time, please reply to the list (see the bottommost line > of my signature). Schoolboy error on my part. Dammed Gmail defaults. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginn

Re: Encoding problem

2012-07-18 Thread Shlomi Fish
On Wed, 18 Jul 2012 18:00:04 +0100 Dermot wrote: > On 18 July 2012 17:18, Shlomi Fish wrote: > > On Wed, 18 Jul 2012 15:41:35 +0100 > >> > >> > >> > >> use strict; > >> use warnings; > >> > >> use HTML::Entities; > >> use Encode::Encoder qw(encoder); > >> > >> my %tests = ( > >> 'Barré'

Re: Encoding problem

2012-07-18 Thread Shlomi Fish
On Wed, 18 Jul 2012 15:41:35 +0100 Dermot wrote: > Hi, > > I am trying to create a HTML page (using TT). The data may include > exotic characters. My efforts to output the characters correctly seem > to be hitting a problem. So I wrote a (kinda) test to help me narrow > down the problem but I'm

Encoding problem

2012-07-18 Thread Dermot
Hi, I am trying to create a HTML page (using TT). The data may include exotic characters. My efforts to output the characters correctly seem to be hitting a problem. So I wrote a (kinda) test to help me narrow down the problem but I'm still not getting the correct result. I can only hope that the

Re: Perl Mail::Sendmail encoding problem

2011-01-18 Thread Uri Guttman
> "SF" == Shlomi Fish writes: SF> Don't slurp files this way: SF> http://perl-begin.org/tutorials/bad-elements/#slurp if you are going to show a slurp sub in your tutorial at least show a good one. look at my slurp article in the File::Slurp distro for a better and faster one. avoiding

Re: Perl Mail::Sendmail encoding problem

2011-01-18 Thread Shlomi Fish
Hi sync, On Tuesday 18 Jan 2011 03:17:21 sync wrote: > Greetings all, > > I have to send emails through a smtp server, with Chinese character > encoding. > > > In details , the encoding of my send mail is UTF-8, but the encoding of > > others received is GB2321 , so it will apprears with "w

Perl Mail::Sendmail encoding problem

2011-01-17 Thread sync
Greetings all, I have to send emails through a smtp server, with Chinese character encoding. In details , the encoding of my send mail is UTF-8, but the encoding of others received is GB2321 , so it will apprears with "weird" characters. Does anyone has any working example or any suggestio

Re: encoding problem?

2007-09-28 Thread braedsjaa
Thanks, that sounds hopeful... at least it does something, though still not right! After reading perldoc Encode::Supported I think maybe I threw myself in at the deep end. (MacRoman is the encoding I _think_ I mean). I am off on another track for now and will return to Perl another day. -- To u

Re: encoding problem?

2007-09-27 Thread [EMAIL PROTECTED]
On Sep 27, 12:27 pm, [EMAIL PROTECTED] wrote: > I am trying to use perl on the command line to process text files in > various ways, one of which is to decode html entities. As far as I can > see, the following line should work > > perl -MHTML::Entities -p -e 'decode_entities($_)' > >output.txt >

Re: encoding problem?

2007-09-27 Thread Rob Dixon
[EMAIL PROTECTED] wrote: I am trying to use perl on the command line to process text files in various ways, one of which is to decode html entities. As far as I can see, the following line should work perl -MHTML::Entities -p -e 'decode_entities($_)' output.txt it does indeed change the htm

encoding problem?

2007-09-27 Thread braedsjaa
I am trying to use perl on the command line to process text files in various ways, one of which is to decode html entities. As far as I can see, the following line should work perl -MHTML::Entities -p -e 'decode_entities($_)' output.txt it does indeed change the html entities, but not into the r