Comments (7)
一般是网页不是utf8编码导致的。
网页文件本身要utf8编码,并且网页charset="utf-8"
from web-msg-sender.
我用的是chrome 编码是UTF-8, charset也是UTF-8, 传输中文的时候会卡住,服务器端的代码不会执行,我现在采用的是转Unicode编码,这种做法感觉不太好?
from web-msg-sender.
先不要集成在你的网页里,
试下这个demo是否有问题
from web-msg-sender.
好的,我试下
from web-msg-sender.
还是不行,简单的放在我的网页里试了下,传中文还是有错
from web-msg-sender.
我的意思是你先不要集成在你的网页里,什么也不要改,试下demo有没有问题。
或者你干脆测试下 http://www.workerman.net:2123/ 看看是否有问题。
from web-msg-sender.
sorry, 我是个php新手,我只会放在网页中测试...我再研究下吧
from web-msg-sender.
Related Issues (19)
- 请问支持 https 站点么? socket 是否也支持 wss协议 HOT 7
- 只允许指定用户连接? HOT 4
- 是否支持集群,目前SLB多台服务器,出现链接不上服务的问题 HOT 1
- js如何手动断开连接,不能刷新页面 HOT 1
- workerman运行一段时间后会自动关闭,cron定时重启无效 HOT 2
- 如何向特定的多个用户同时发送消息? HOT 1
- 请问有没有post数据的验证措施?比如只能在运行服务的服务器上发送数据 HOT 2
- 小白刚接触这个,请问这个sender还需要自己定义心跳连接吗? 是否已经默认有了? 谢谢 HOT 1
- Safari浏览器无法携带sid进而报错Bad handshake method
- posix_setsid 错误 HOT 1
- 请问web-msg-sender怎么使用自定义的array?
- window可以运行,linux不行 HOT 2
- composer install 报错
- 性能问题 HOT 1
- 怎么增加进程? HOT 1
- socket.io-clientpp无法完成链接 HOT 9
- discuss HOT 3
- 2121发送可以,2123查看不了,2120也接收不了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-msg-sender.