Fix garbled message text: Difference between revisions

Jump to navigation Jump to search
Line 7: Line 7:




Possible approaches to encode the message text:
<table border="1" style="width: 100%; table-layout: fixed;">
<table border="1" style="width: 100%; table-layout: fixed;">
<tr>
<tr>
Line 26: Line 27:
</td>
</td>
<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 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>
</tr>
</tr>
Line 40: Line 40:
</tr>
</tr>
<tr>
<tr>
<th> [http://php.net/serialize PHP: serialize - Manual]
<th> [http://php.net/manual/en/function.json-encode.php PHP: json_encode]
</th>
<td>Save array in mysql database
</td>
<td> TRUE
</td>
<td style="word-wrap: break-word;"> <ul><li>before: array("作者" => "馬克吐溫"); <li>after: <nowiki>{"\u4f5c\u8005":"\u99ac\u514b\u5410\u6eab"}</nowiki></ul>
</td>
</tr>
<tr>
<th> [http://php.net/serialize PHP: serialize]
</th>
</th>
<td>[http://stackoverflow.com/questions/10686333/save-array-in-mysql-database Save array in mysql database]
<td>[http://stackoverflow.com/questions/10686333/save-array-in-mysql-database Save array in mysql database]
</td>
</td>
<td> FALSE
<td> <span style="color: #999">FALSE</span>
</td>
</td>
<td style="word-wrap: break-word;"> <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>

Navigation menu