Author: richter
Date: Mon Nov 14 21:22:19 2005
New Revision: 344310
URL: http://svn.apache.org/viewcvs?rev=344310&view=rev
Log:
- docs
- V2.1.0
Modified:
perl/embperl/trunk/Changes.pod
perl/embperl/trunk/Embperl.pm
perl/embperl/trunk/Embperl.pod
perl/embperl/trunk/Embperl/Mail.pm
perl/embperl/trunk/Embperl/Object.pm
perl/embperl/trunk/Features.pod
perl/embperl/trunk/MANIFEST
perl/embperl/trunk/README
perl/embperl/trunk/test/cmp/epodiv.htm
perl/embperl/trunk/test/cmp/epoincdiv.htm
Modified: perl/embperl/trunk/Changes.pod
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/Changes.pod?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/Changes.pod (original)
+++ perl/embperl/trunk/Changes.pod Mon Nov 14 21:22:19 2005
@@ -1,6 +1,6 @@
=pod
-=head1 2.0.2_dev (Not yet released, only in the L<"SVN"|SVN.pod>)
+=head1 2.1.0 15. Nov 2005
- Added better UTF-8 support:
- Output escaping now takes Perl's UTF-8 flags into
Modified: perl/embperl/trunk/Embperl.pm
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/Embperl.pm?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/Embperl.pm (original)
+++ perl/embperl/trunk/Embperl.pm Mon Nov 14 21:22:19 2005
@@ -49,7 +49,7 @@
@ISA = qw(Exporter DynaLoader);
-$VERSION = '2.0.2_dev' ;
+$VERSION = '2.1.0' ;
if ($modperl = $ENV{MOD_PERL})
Modified: perl/embperl/trunk/Embperl.pod
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/Embperl.pod?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/Embperl.pod (original)
+++ perl/embperl/trunk/Embperl.pod Mon Nov 14 21:22:19 2005
@@ -1400,6 +1400,51 @@
In case you need to retrieve a text inside your Perl code, you can do this
with $r -> gettext('bar')
+=head1 Encoding/UTF-8
+
+Requires Embperl 2.1.0 and up.
+
+I<Embperl> tries to do the right thing to handle ISO-8859-1 and UTF-8
+out of the box. There are three places where encoding comes into places:
+
+=over 4
+
+=item Posted form data
+
+=item Output escaping
+
+=item Source code
+
+=back
+
+While the first two things are handled by Embperl itself, the third item is
+currently left to handle by Perl.
+
+Perl carries for each string value a flag that tells if the string
+is UTF-8 or not. Embperl uses this flag.
+
+Posted form data is examined. If a string contains valid UTF-8
+characters Perl's internal UTF-8 flag is set. You can disable
+setting the UTF-8 flag by setting C<optFormDataNoUtf8> in C<EMBPERL_OPTIONS>.
+
+Output escaping is done based on the UTF-8 flag. In case the UTF-8
+flags is set characters above 127 are not escaped. To get the
+correct appearance in your browser you also have to specify the
+encoding as UTF-8 in your content-type http header.
+
+If the UTF-8 flag is not set the output escaping is done based on the
+setting of C<EMBPERL_OUTPUT_ESC_CHARSET>, which defaults to
+ISO-8859-1 (latin1). ISO-8859-2 (latin2) is also selectable.
+
+If you wish to have your Perl source code in UTF-8, you have to
+add a C<use utf8;> at the top of each page.
+
+Please note that not all modules sets Perl's internal UTF-8 flag
+correctly. At the time of this writing for example
+DBI and Net::LDAP does not set this flag. You have to correct
+it manualy, for example by using C<Encode::_utf8_on>.
+
+
=head1 Error trapping
Modified: perl/embperl/trunk/Embperl/Mail.pm
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/Embperl/Mail.pm?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/Embperl/Mail.pm (original)
+++ perl/embperl/trunk/Embperl/Mail.pm Mon Nov 14 21:22:19 2005
@@ -31,7 +31,7 @@
@ISA = qw(Embperl);
-$VERSION = '2.0.1';
+$VERSION = '2.1.0';
sub _quote_hdr
Modified: perl/embperl/trunk/Embperl/Object.pm
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/Embperl/Object.pm?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/Embperl/Object.pm (original)
+++ perl/embperl/trunk/Embperl/Object.pm Mon Nov 14 21:22:19 2005
@@ -48,7 +48,7 @@
@ISA = qw(Exporter DynaLoader);
-$VERSION = '2.0.1';
+$VERSION = '2.1.0';
$volume = (File::Spec -> splitpath ($Embperl::cwd))[0] ;
Modified: perl/embperl/trunk/Features.pod
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/Features.pod?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/Features.pod (original)
+++ perl/embperl/trunk/Features.pod Mon Nov 14 21:22:19 2005
@@ -80,6 +80,9 @@
Handles per-user and per-module persistent session requiring only storage and
retrieval of
the session data from a special hash.
+=item *
+
+UTF-8 Support (honours Perl's internal UTF-8 flag during in- and output)
=item *
@@ -100,6 +103,12 @@
=item *
I<Embperl::Mail> enables redirecting the result output to a mail-recipient.
+
+
+=item *
+
+I<Embperl::Inline> allows to embedd Embperl code in normal Perl code
+
=back
Modified: perl/embperl/trunk/MANIFEST
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/MANIFEST?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/MANIFEST (original)
+++ perl/embperl/trunk/MANIFEST Mon Nov 14 21:22:19 2005
@@ -170,8 +170,6 @@
epcfg.h
epcgiinit.c
epchar.c
-epchar.c.iso-latin-2
-epchar.c.min
epcmd.c
epcmd2.c
epcomp.c
Modified: perl/embperl/trunk/README
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/README?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/README (original)
+++ perl/embperl/trunk/README Mon Nov 14 21:22:19 2005
@@ -49,8 +49,9 @@
Installation of Embperl: perldoc INSTALL.pod
Full documentation: perldoc Config.pod
perldoc Embperl.pod
- perldoc EmbperlObject.pm
+ perldoc Embperl/Object.pm
perldoc Embperl/Mail.pm
+ perldoc Embperl/Inline.pm
Tips and Tricks: perldoc TipsAndTricks.pod
Changes: perldoc Changes.pod
Examples: eg/x/README
@@ -112,6 +113,8 @@
* Handles per-user and per-module persistent session requiring only storage
and retrieval of
the session data from a special hash.
+* UTF-8 Support (honours Perl's internal UTF-8 flag during in- and output)
+
* Offers flexible configuration options to suite individual tastes and needs.
* Fully integrated into Apache and mod_perl to acheive the best performance.
@@ -121,6 +124,7 @@
* Embperl::Mail enables redirecting the result output to a mail-recipient.
+* Embperl::Inline allows to embedd Embperl code in normal Perl code
Modified: perl/embperl/trunk/test/cmp/epodiv.htm
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/test/cmp/epodiv.htm?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/test/cmp/epodiv.htm (original)
+++ perl/embperl/trunk/test/cmp/epodiv.htm Mon Nov 14 21:22:19 2005
@@ -280,7 +280,7 @@
</tr>
</table>
-^<P>(2\.0.*?|1\.3.*?)<P>
+^<P>(2\.1.*?|1\.3.*?)<P>
<P>17<P>
<P>1<P>
Modified: perl/embperl/trunk/test/cmp/epoincdiv.htm
URL:
http://svn.apache.org/viewcvs/perl/embperl/trunk/test/cmp/epoincdiv.htm?rev=344310&r1=344309&r2=344310&view=diff
==============================================================================
--- perl/embperl/trunk/test/cmp/epoincdiv.htm (original)
+++ perl/embperl/trunk/test/cmp/epoincdiv.htm Mon Nov 14 21:22:19 2005
@@ -284,7 +284,7 @@
</tr>
</table>
-^<P>2.0
+^<P>2.1
<P>17<P>
<P>1<P>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]