本人以前也解决过kindeditor乱码的问题,无非就是改文件编码,加charset声明之类的。
这次真的不同以往。
本地一切正常,传到服务器上面就是乱码?
无奈测试了一下kindeditor自带的例子,也是乱码
http://nb.80099.com/kindeditor/examples/image-dialog.html
点击按钮,弹出来的就是一片乱码,你们看下。
我死马当活马医,修改httpd.conf文件。加了AddDefultCharSet off也是一样
求解决方法。
回复讨论(解决方案)
你修改了 zh_CN.js 的字符集吗?
怎么从 http://nb.80099.com/kindeditor/lang/zh_CN.js 取到的文档是 gbk 的呢?
你有
<script></script>
<script></script>
如果你不能(不愿)还原该文件的字符集,那至少需要
不是gbk啊,是utf8的啊,我用notepad++,和ultraedit都看过编码
你修改了 zh_CN.js 的字符集吗?
怎么从 http://nb.80099.com/kindeditor/lang/zh_CN.js 取到的文档是 gbk 的呢?
你有
<script></script>
<script></script>
如果你不能(不愿)还原该文件的字符集,那至少需要
我把zh_CN.js删除了,竟然还可以访问到,原来
http://nb.80099.com/kindeditor/lang/zh_CN.js
实际上访问到的是
http://www.80099.com/kindeditor/lang/zh_CN.js
正在排查为什么会这样
我有忽悠你的必要吗?
$s = file_get_contents('http://nb.80099.com/kindeditor/lang/zh_CN.js');var_dump(mb_check_encoding($s, 'utf-8')); //bool(false)var_dump(mb_check_encoding($s, 'gbk')); //bool(true)
换了个名字就可以访问到nb上面的了,不然访问的是www上面的,奇了怪了
http://nb.80099.com/kindeditor1/examples/image-dialog.html
看,只是改了一个名字就好了,因为nb上面的是utf8的,而www上面的是gbk的
但是不知为什么如果用/kindeditor就回去读www上面的。奇葩。

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

Laravel's service container and service providers are fundamental to its architecture. This article explores service containers, details service provider creation, registration, and demonstrates practical usage with examples. We'll begin with an ove

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

PHP logging is essential for monitoring and debugging web applications, as well as capturing critical events, errors, and runtime behavior. It provides valuable insights into system performance, helps identify issues, and supports faster troubleshoot

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

WebStorm Mac version
Useful JavaScript development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function