我有个问题。我想用空格更改黑色菱形问号(U-FFFD)。如何搜索字符(黑色菱形问号),以便用空格更改它?感谢您的关注。
发布于 2011-03-11 16:39:53
[theString stringByReplacingOccurrencesOfString:@"\ufffd" withString:@" "];发布于 2011-05-30 11:22:45
解决带问号的黑菱形。
只需使用以下命令:
foreach($disp as $objs)
{
$objs = preg_replace( '|[^.?,A-Za-z0-9-]+|', ' ', $objs);
echo $objs;
}
// this will display character (.?A-Z AND 0-9) and replace char other than this.https://stackoverflow.com/questions/5270534
复制相似问题