Show
Ignore:
Timestamp:
01/21/08 18:55:15 (7 years ago)
Author:
chiba
Message:

* x-sjis-*の名前をx-sjis-*-rawに変更
* x-sjis-*-convert_pictgram をx-sjis-*に変更
これにより、今までどおりencode('x-sjis-docomo', $str);とやるだけで
絵文字の変換も自動で。

このままだとx-sjis-kddiでdecodeされたものをencodeすると絵文字部分でfallback起こしまくりな予感なので
x-utf8-*.ucmにx-sjis-kddi-cp932でSoftBankと衝突してないマップを挿入する必要あり。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Encode-JP-Mobile/branches/auto-convert-sjis-pictgram/t/kddi-jis.t

    r4775 r5176  
    1717    # test kddi-auto Unicode chars as well ... rare in reality though 
    1818    my $bytes = $jis; 
    19     Encode::from_to($bytes, "x-iso-2022-jp-kddi" => "x-sjis-kddi"); 
    20     Encode::from_to($bytes, "x-sjis-kddi-auto", "x-iso-2022-jp-kddi"); 
     19    Encode::from_to($bytes, "x-iso-2022-jp-kddi" => "x-sjis-kddi-raw"); 
     20    Encode::from_to($bytes, "x-sjis-kddi-auto-raw", "x-iso-2022-jp-kddi"); 
    2121    is $bytes, $jis, "x-sjis-kddi-auto $case"; 
    2222}