简体   繁体   English

AJAX窗口不适用于西里尔字母 - 为什么?

[英]AJAX window doesn't work with cyrillic letters - why?

I've tried Tinybox2 (pure javascript) and Colorbox (works with jquery) (modal windows with source from another url). 我已经尝试过Tinybox2 (纯javascript)和Colorbox (与jquery一起工作)(带有来自另一个url的源代码的模态窗口)。

Both work fine with latin letters, but not with cyrillic letters. 两者都可以正常使用拉丁字母,但不能使用西里尔字母。 I do not know how to solve this problem with encoding... 我不知道如何用编码解决这个问题...

Tinybox2 doesn't work at all with cyrillic. Tinybox2根本不适用于西里尔语。 Colorbox shows next text in opened modal window: Colorbox在打开的模态窗口中显示下一个文本:

Request unsuccessful: INTERNAL SERVER ERROR

Run on local machine. 在本地计算机上运行。

How to solve this? 怎么解决这个?

try running this header with php at the very top of your document. 尝试在文档的最顶部使用php运行此标头。

<?php
header ("Content-Type: text/html; charset=windows-1251");
?>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM