summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-23 21:30:11 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-23 21:30:11 +0800
commit0e78400996939f21d85ce0c0d0973d2939609edf (patch)
treee8bc8cac3213b528705f198d56345db0f5145d90
parent4119353ffeba74abfe879a24e5b5d1d8b55481ea (diff)
downloadpttbbs-0e78400996939f21d85ce0c0d0973d2939609edf.tar
pttbbs-0e78400996939f21d85ce0c0d0973d2939609edf.tar.gz
pttbbs-0e78400996939f21d85ce0c0d0973d2939609edf.tar.bz2
pttbbs-0e78400996939f21d85ce0c0d0973d2939609edf.tar.lz
pttbbs-0e78400996939f21d85ce0c0d0973d2939609edf.tar.xz
pttbbs-0e78400996939f21d85ce0c0d0973d2939609edf.tar.zst
pttbbs-0e78400996939f21d85ce0c0d0973d2939609edf.zip
fix lynx big5 encoding problem
reported by lihgong(嚙篆嚙稽) on ptt2/PttSrc git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@437 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/weather.perl5
1 files changed, 3 insertions, 2 deletions
diff --git a/pttbbs/util/weather.perl b/pttbbs/util/weather.perl
index 276ba8a5..88d380c1 100644
--- a/pttbbs/util/weather.perl
+++ b/pttbbs/util/weather.perl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: weather.perl,v 1.2 2002/07/04 09:33:10 in2 Exp $
+# $Id: weather.perl,v 1.3 2002/07/23 13:30:11 kcwu Exp $
#
# 不能跑的話,看看 bbspost 的路徑是否正確。
# 如果發出的 post 沒有氣象報告而是說 URL 找不到,則確定一下能不能看到
@@ -15,7 +15,8 @@ close DATE;
# Header
# 內容
-open(WEATHER, "/usr/bin/lynx -dump http://www.cwb.gov.tw/V3.0/weather/text/W03.htm |");
+open(WEATHER, "/usr/bin/lynx -assume_charset=big5 -assume_local_charset=big5 -dump http://www.cwb.gov.tw/V3.0/weather/text/W03.htm |");
+
while (<WEATHER>) {
print BBSPOST if ($_ ne "\n");
}