B L O G T I M E S
March 2017
Su Mo Tu We Th Fr Sa
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Search


Archives
September 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003

November 23, 2003

BookMarkletの文字コード

Milanoさんの[Monolog]で、最新版の日本語パッチが公開さえていたので、この間入れ替えてから起きている不具合が解消されていたらラッキーと思ってまた入れ替え。
どうやら、BookMarkletまわりは替わっていないもよう。

約一年前のエントリーに関連の記載があったのでそれを参考にCMS.pmを変更。
以下覚書き。

lib/MT/APP/CMS.pm 変更点覚書


209| ## For bookmarklets, we need to pass-thru text, title, and
210| ## href vars
211| my $charset = {'Shift_JIS'=>'sjis','ISO-2022-JP'=>'jis','EUC-JP'=> 'euc',
212| 'UTF-8'=>'utf8'}->{$app->{cfg}->PublishCharset} || 'utf8';

635| $param{created_on_formatted} = $q->param('created_on_manual');
636| if ($q->param('is_bm')) {
637| my $charset = {'Shift_JIS'=>'sjis','ISO-2022-JP'=>'jis','EUC-JP'=> 'euc',
638| 'UTF-8'=>'utf8'}->{$app->{cfg}->PublishCharset} || 'utf8';
639| $param{selected_text} = $param{text};
640| $param{text} = sprintf qq(<a title="%s" href="%s">%s</a>\n\n%s),


212| 'UTF-8'=>'utf8'}->{$app->{cfg}->PublishCharset} || 'euc';

638| 'UTF-8'=>'utf8'}->{$app->{cfg}->PublishCharset} || 'euc';