14,954
edits
| Line 7: | Line 7: | ||
<table border="1"> | <table border="1" style="width: 100%; table-layout: fixed;"> | ||
<tr> | <tr> | ||
<th | <th style="width: 20%;"> Approach | ||
</th> | </th> | ||
<th | <th style="width: 25%"> Goal | ||
</th> | </th> | ||
<th width=" | <th style="width: 20%"> Is Chinese text garbled/encoded? | ||
</th> | |||
<th style="width: 35%;"> Sample text | |||
</th> | </th> | ||
</tr> | </tr> | ||
| Line 19: | Line 21: | ||
<th> [http://www.w3schools.com/jsref/jsref_decodeuricomponent.asp JavaScript decodeURIComponent() Function]<ref>[http://stackoverflow.com/questions/9901027/how-to-encode-url-contains-unicode-characters-with-php urlencode - How to Encode URL Contains Unicode Characters with PHP - Stack Overflow]</ref> | <th> [http://www.w3schools.com/jsref/jsref_decodeuricomponent.asp JavaScript decodeURIComponent() Function]<ref>[http://stackoverflow.com/questions/9901027/how-to-encode-url-contains-unicode-characters-with-php urlencode - How to Encode URL Contains Unicode Characters with PHP - Stack Overflow]</ref> | ||
</th> | </th> | ||
<td> "converts characters into a format that can be transmitted over the Internet ... " Cited from [http://www.w3schools.com/tags/ref_urlencode.asp w3schools] | |||
</td> | |||
<td> TRUE | <td> TRUE | ||
</td> | </td> | ||
<td> <ul><li>before: http://www.中文網址.tw/my test.asp?name=ståle&car=saab <li>after: http%3A%2F%2Fwww.%E4%B8%AD%E6%96%87%E7%B6%B2%E5%9D%80.tw%2Fmy%20test.asp%3Fname%3Dst%C3%A5le%26car%3Dsaab </ul> | <td style="word-wrap: break-word;"> <ul><li>before: <nowiki>http://www.中文網址.tw/my test.asp?name=ståle&car=saab</nowiki> <li>after: <nowiki>http%3A%2F%2Fwww.%E4%B8%AD%E6%96%87%E7%B6%B2%E5%9D%80.tw%2Fmy%20test.asp%3Fname%3Dst%C3%A5le%26car%3Dsaab</nowiki> </ul> | ||
</td> | </td> | ||
| Line 28: | Line 32: | ||
<th> [http://meyerweb.com/eric/tools/dencoder/ URL Decoder/Encoder]<ref>PHP [http://php.net/manual/en/function.urlencode.php urlencode()]</ref> | <th> [http://meyerweb.com/eric/tools/dencoder/ URL Decoder/Encoder]<ref>PHP [http://php.net/manual/en/function.urlencode.php urlencode()]</ref> | ||
</th> | </th> | ||
<td> (same as above) | |||
</td> | |||
<td> TRUE | <td> TRUE | ||
</td> | </td> | ||
<td | <td style="word-wrap: break-word;"> (same as above) | ||
</td> | </td> | ||
</tr> | </tr> | ||
| Line 36: | Line 42: | ||
<th> [http://php.net/serialize PHP: serialize - Manual] | <th> [http://php.net/serialize PHP: serialize - Manual] | ||
</th> | </th> | ||
<td>[http://stackoverflow.com/questions/10686333/save-array-in-mysql-database php Save array in mysql database] | |||
</td> | |||
<td> FALSE | <td> FALSE | ||
</td> | </td> | ||
<td> <ul><li>before: array("作者" => "馬克吐溫"); <li>after: a:1:{s:6:"作者";s:12:"馬克吐溫";}</ul> | <td style="word-wrap: break-word;"> <ul><li>before: array("作者" => "馬克吐溫"); <li>after: a:1:{s:6:"作者";s:12:"馬克吐溫";}</ul> | ||
</td> | </td> | ||
</tr> | </tr> | ||