开发者

Charset change after DOM manipulation

I've run into an odd problem while doing my PHP/JS chat. At the moment I'm storing chat history into txt file in UTF-8 encoding. After you load the page PHP script grabs previous history, print it into a div and starts JScript with interval of 5sec which is supposed to refresh the div area using a textgrabber PHP script. Here's my problem: After AJAX call which grabs history from the text file my charset encoding seems to get screwed. I get questionmarks instead of chars with punctuntion (such as č/š/ě) but when I display sourcecode of the webpage the coding is correct. Is it possible that DOM manipulation somehow changes pa开发者_C百科ge's charset setup?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜