开发者

how to replace the all the occurence using php

hi how to replace the all the occurrence of the spaces into  开发者_如何学运维, I am tying to save my message from editor to my db , while i retrieving the message it shows �� instead of spaces please guide me


It is the problem with tag in your head replace your charset to ISO-8859-1

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />


What kind of editor you used? In what application?

As I know maybe it has problem with the charset you used to display those message, and how did you retrieve those data from db?

For sure, try to peak into the db entry using PHPMyAdmin, or similar tools, and look if the messages you saved there also has ��. It it is, then it maybe problem on submitting, or collation you use on your db.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜