This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



Encode::GSM0338(3pm)                  Perl Programmers Reference Guide                  Encode::GSM0338(3pm)



NAME
       Encode::GSM0338 -- ESTI GSM 03.38 Encoding

SYNOPSIS
         use Encode qw/encode decode/;
         $gsm0338 = encode("gsm0338", $utf8);    # loads Encode::GSM0338 implicitly
         $utf8    = decode("gsm0338", $gsm0338); # ditto

DESCRIPTION
       GSM0338 is for GSM handsets. Though it shares alphanumerals with ASCII, control character ranges and
       other parts are mapped very differently, mainly to store Greek characters.  There are also escape
       sequences (starting with 0x1B) to cover e.g. the Euro sign.

       This was once handled by Encode::Bytes but because of all those unusual specifications, Encode 2.20
       has relocated the support to this module.

NOTES
       Unlike most other encodings,  the following aways croaks on error for any $chk that evaluates to
       true.

         $gsm0338 = encode("gsm0338", $utf8      $chk);
         $utf8    = decode("gsm0338", $gsm0338,  $chk);

       So if you want to check the validity of the encoding, surround the expression with "eval {}" block as
       follows;

         eval {
           $utf8    = decode("gsm0338", $gsm0338,  $chk);
         };
         if ($@){
           # handle exception here
         }

BUGS
       ESTI GSM 03.38 Encoding itself.

       Mapping \x00 to '@' causes too much pain everywhere.

       Its use of \x1b (escape) is also very questionable.

       Because of those two, the code paging approach used use in ucm-based Encoding SOMETIMES fails so this
       module was written.

SEE ALSO
       Encode



perl v5.10.0                                     2007-12-18                             Encode::GSM0338(3pm)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Perl project. (See perlbug(1) for submission instructions.)
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Perl project using perlbug(1).
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.