[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1998] branches/1.2/LedgerSMB/Num2text.pm



Revision: 1998
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1998&view=rev
Author:   tetragon
Date:     2007-12-21 12:44:30 -0800 (Fri, 21 Dec 2007)

Log Message:
-----------
Play with text encoding, hopefully this fixes it

Modified Paths:
--------------
    branches/1.2/LedgerSMB/Num2text.pm

Modified: branches/1.2/LedgerSMB/Num2text.pm
===================================================================
--- branches/1.2/LedgerSMB/Num2text.pm	2007-12-21 07:25:11 UTC (rev 1997)
+++ branches/1.2/LedgerSMB/Num2text.pm	2007-12-21 20:44:30 UTC (rev 1998)
@@ -40,6 +40,8 @@
 #     {print $_.":".$c->num2text($_)."\n";};'
 # EOF
 
+use utf8;
+
 sub init {
     my $self    = shift;
     my $locale  = $self->{'locale'};
@@ -512,13 +514,13 @@
             if ( $numblock[$i] > 1 ) {
                 if ( $i == 2 || $i == 4 ) {
                     $a = $self->{numbername}{$num} . "es";
-                    $a =~ s/\xF3/o/;
+                    $a =~ s/Ã/o/;
                     push @textnumber, $a;
                 }
                 elsif ( $i == 3 ) {
                     $num = 10**( $i * 2 );
                     $a   = "$self->{10**3} $self->{numbername}{$num}" . "es";
-                    $a =~ s/\xF3/o/;
+                    $a =~ s/Ã/o/;
                     push @textnumber, $a;
                 }
                 else {
@@ -1244,7 +1246,7 @@
     
     pop @numblock;
 
-    @textnumber = 'NAPAKA! \xBFTEVILKA JE PREVELIKA!' if ($i > 4);
+    @textnumber = 'NAPAKA! ÂTEVILKA JE PREVELIKA!' if ($i > 4);
     
   }
 
@@ -1281,5 +1283,3 @@
 1;
 
 
-1;
-


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.