Show
Ignore:
Timestamp:
01/16/08 19:31:19 (5 years ago)
Author:
miyagawa
Message:

added a rough doc so I won't forget what these encodings actually do.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Encode-JP-Mobile/trunk/lib/Encode/JP/Mobile.pm

    r4705 r4706  
    220220=item x-sjis-airedge 
    221221 
    222 Mapping for AirEDGE pictograms. It's a complete subset of cp932C<x-sjis-airh> is an alias. 
     222Mapping for AirEDGE pictograms. It's a complete subset of cp932 and 
     223C<x-sjis-airh> is an alias. 
     224 
     225=item x-utf8-docomo, x-utf8-softbank, x-utf8-kddi 
     226 
     227x-utf8-* encodings are encodings to display subset of Unicode 
     228characters in UTF-8 format. The subset is set to characters in: 
     229 
     230  cp932 + x-sjis-{career} + (characters mapped from other careers) 
     231 
     232When encoding Unicode characters, it automatically does conversion 
     233from other career based encodings. 
     234 
     235For example, 
     236 
     237  # KDDI 'Sunny' character in UTF-8 
     238  my $bytes = "\xEE\xBD\xA0"; 
     239  Encode::from_to($bytes, "utf-8" => "x-utf8-docomo"); 
     240  # Now $bytes has DoCoMo 'Sunny' character in UTF-8 
     241 
     242Note that these encodings are B<encode only> and can't be used for 
     243decoding characters. 
    223244 
    224245=back