作者tnsshnews (tnsshnews)
看板PHP
标题[请益]strpos是不是不能搜寻中文字呢
时间Mon Oct 4 23:28:15 2010
如果要搜寻某个中文字串
strpos是不是无法处理呢
若是,请问有办法处理吗
谢谢
ps. 我是用snoopy.class去fetch这个网页的source code
http://www.dreye.com:8080/axis/ddict.jsp?w=go&id=38832&dod=0102&type=3&ver=big5
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.45.29.16
1F:→ shadowjohn:UTF8的话用 mb_strpos 10/04 23:30
2F:→ tnsshnews:感谢 10/04 23:34
3F:→ tnsshnews:刚才试了一下 还是不行ㄟ 10/05 00:04
4F:→ shadowjohn:mb_internal_encoding('UTF-8'); 这行写到最上面试试 10/05 00:24
5F:→ shadowjohn:mb_regex_encoding("UTF-8"); 这行也要 10/05 00:24
6F:→ shadowjohn:mb_http_output("UTF-8"); 这行也.. 10/05 00:24
7F:→ tnsshnews:还是一样ㄟ 10/05 00:29
※ 编辑: tnsshnews 来自: 114.45.29.16 (10/05 00:31)
8F:→ tnsshnews:我是去上面那个网址抓原始码 10/05 00:32
9F:→ tnsshnews:目的是要抓网页中的某些资料存到资料库使用 10/05 00:32
12F:推 shadowjohn:谢好翻译网站连结~~ 10/05 02:37
13F:推 buganini:原po那个网页是big5 10/06 12:33
14F:推 shadowjohn:嗯,big5,如果抓进来,最好先转一下~ 10/06 13:57