任何人都知道這是什麼以及如何解決它? “TheOMGA€在PHP中修復字符
<p>After 32 years in its former location, this popular restaurant
and bar moved to the bottom of the Avalon Bay Luxury residential building
that's just a walk from Angel Stadium. Modern and welcoming, the expansive
space is where fans, locals and families gather for upscale twists on classic
American dishes. Burgers here have a decidedly fun flair like “The OMG�
that is a burger surely meant for sharing (with many)--it's so huge that it's
served on a 14-inch bun. The restaurant also specializes in seafood with such
items as Chilean sea bass, mahi mahi and swordfish. The lounge also serves
signature drinks like the Rally Monkey Martini in tribute to the mascot
of the Angels.</p>
這似乎是一個問題,因爲一個功能可按我不得不對JSON數據運行解碼,或JSON解碼將會失敗前:
function safeJSON_chars($data) {
$aux = str_split($data);
foreach($aux as $a) {
$a1 = urlencode($a);
$aa = explode("%", $a1);
foreach($aa as $v) {
if($v!="") {
if(hexdec($v)>127) {
$data = str_replace($a,"&#".hexdec($v).";",$data);
}
}
}
}
return $data;}
'回聲進行urlencode(ヶ輛( 'OMG'));「不知道這是你在找什麼。輸出'%26Atilde%3B%26%3B%26%3A%82%26%%3B%26%3A%%3B%26%3B%26%3B%26%3B%26%3B%26%3B% %26iquest%3B%26frac12%3B' – kjy112 2011-03-01 14:40:21
你是否設法解決了這個問題呢? – 2011-03-01 14:50:54
$ editorial_review = mb_convert_encoding($ value [「editorial_review」],'UTF-8','UTF-8');沒有幫助。 – MrPHP 2011-03-01 15:17:18