Che Dong posted a photo:
MT 默认采用的浏览字符集是 UTF-8 ,所以 MT 从所有的表单中得到的数据都是 utf-8 编码的,都不加转换的直接把这些数据发送给 MySQL( MT 的 character set client 和 character set connection 都是 utf8)。
但由上表所示,MySQL 默认设置的 character_set_client 和 character_set_connection 都是 latin1,此时怪异的事情发生了,实际上是 utf-8 格式的数据,被"当作 latin1"转换成……居然还是转换成 latin1,然后还要转换成 latin1 ( character set database )存入数据库,最后按照 latin1 的编码进行储存。(实际的存储数据,character set results)
但这几次转换 (主要是把 utf8 当作latin1转换成 latin1的过程)就造成了乱码。(利用Mysql CC和 phpmyadmin等可以看到是乱码,mysqldump 出来无论当作 utf-8 还是当作 latiin1 来读也都是乱码)。但是这种格式最后按照 character_set_results 默认是 utf8输出的时候,居然又能变回 utf8,而且也不是乱码了。也就是 MT 用 utf8 显示为正常的原因。
(Note: The following is a transcript from yesterday's Foreign Affairs Press Briefing)
Q: According to South Korean media reports, North Korean Workers Party General Secretary Kim Jung-Il is in China. Can you confirm that?
Kong Quan, Foreign Affairs Spokesman: The whole world is focused on the problems relating to the six party talks and the denuclearization of the Korean peninsula. China has played in important role in trying to bring the six sides to the negotiating table. All sides must do their utmost to overcome difficulties.
Q: So is he in China then?
KQ: I have received no such information.
Q: So, if he is in China, what would he be talking about? Would it include the six-party talks?
KQ: [fingers in ears] La di da. Mmmm...
Q: So, he's in China then?
KQ: The price of bananas is a very important factor in China's macroeconomic outlook... Ooh. Look at that over there! [Puff of smoke. KQ disappears through hatch]
Note: the image above does not include Kong Quan, who looks like this.
Che Dong posted a photo:
根据TraCQ搜索力排行榜数据统计:
www.tq.cn/se_top10.jsp
百度 60%
Google 10%
3721 10%
Yahoo! 10%
其他 10%
我正在關注:
PPT演示的10/20/30法则 如果有人让你在准备演讲的PPT的时候只能用不小于30点的大字体,你是不是觉得他疯了?不过这正是风险投资家盖川崎(Guy Kawasaki)的建议。 (tags: powerpoint 簡報 演講)
The Web 2.0 Revolution Spawns Offshoots The ideas in the Web 2.0 best practice set continue to capture the imagination of software creators everywhere. Sometimes it seems like you can’t turn around without discovering some great new, pervasive, online software being released for the world to use. But the core [...]
搜索引擎 | 搜索力指数 | 排名升降 | 份额 |
1. Baidu | 112462914 |
![]() |
60.87% |
2. Google | 22183254 |
![]() |
12.01% |
3. 3721 | 18516906 |
![]() |
10.02% |
4. Yahoo | 16557182 |
![]() |
8.96% |
5. 163 | 5086674 |
![]() |
2.75% |
6. Sogou | 3890214 |
![]() |
2.11% |
7. QQ | 1891898 |
![]() |
1.02% |
8. Tom | 1441550 |
![]() |
0.78% |
9. China | 914018 |
![]() |
0.49% |
10. iAsk | 871030 |
![]() |
0.47% |
11. Zhongsou | 690826 |
![]() |
0.37% |
12. Yisou | 236190 |
![]() |
0.13% |
13. Sohu | 13106 |
![]() |
0.01% |
14. Sina | 134 |
![]() |
0.00% |
對於一個即將投奔Mac陣營的人來說,MACWORLD 2006 文字轉播顯然是不能錯過的大事。於是我守在電腦前,好整以暇地準備欣賞好友傅瑞德的轉播秀。謝謝傅瑞德,謝謝葉家昇,謝謝所有應該感謝的朋友。Steve Jobs,我看到你站在舞台上了--噓,安靜……我要來體驗蘋果的美妙滋味了!