How can I resolve this? Only the space becomes a question mark, other Chinese or something is normal
Reply to discussion (solution)
This is related to your editor, the space is not a standard space
Can you
echo Base64_encode (' Your utf-8 string ');
Post the results of a view
I suspect that's not a normal space.
This is related to your editor, the space is not a standard space
Can you
echo Base64_encode (' Your utf-8 string ');
Post the results of a view
This article says this space is a bit special, is 0xc2 0xA0.
http://hi.baidu.com/lilong2114311/item/6d0b20c87ede71c8984aa097
But I'm trying to convert.
But no effect, seek advice
This is related to your editor, the space is not a standard space
Can you
echo Base64_encode (' Your utf-8 string ');
Post the results of a view
The complete code is as follows:
This is related to your editor, the space is not a standard space
Can you
echo Base64_encode (' Your utf-8 string ');
Post the results of a view
You search the page for the "Fourth generation Fire" of the "Country of Fire" Wood Leaf Ninja Village, preceded by a four question mark.
Check the source to confirm that the few are not normal space (0x20), but 0xa0:no-break space (ie nbsp)
You can't blame someone if you write it wrong.
$str = Str_replace ("0xC2 0xA0", ", $str);
should be for
$str = Str_replace ("\xc2\xa0", "', $str);
In addition, the source code has a BOM header