Groups
Groups
Sign in
Groups
Groups
socketio-netty
Conversations
About
Send feedback
Help
socketio-netty中关于中文乱码问题
301 views
Skip to first unread message
weilz
unread,
Sep 24, 2012, 5:26:41 AM
9/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to socketi...@googlegroups.com
聂永,你好,在你的BlogJava中使用svn下载
https://realtime-web-demo.googlecode.com/svn/trunk/
这个realTime项目,然后我仿照你的项目的思路改出了一个一样的聊天功能(仅供测试,准备完成后整合到公司的一个会议系统中去),但在测试中发现无论是你的项目还是我仿照改出来的项目在输入中文后后会出现乱码的情况,之后我跟了一下chat页面中js的代码,然后我给输入的信息转了下编码,但是接收信息的时候它调用的是message这个方法,令我茫然的是竟然在chat页面中没有找到调用message函数的这个事件或方法,求指教,如果可以的话向加一下你的QQ,一边当面请教。
yongboy
unread,
Sep 25, 2012, 4:35:35 AM
9/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to socketi...@googlegroups.com
您好:
上午外出,刚看到邮件。
正在处理中
yongboy
unread,
Sep 25, 2012, 4:43:53 AM
9/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to socketi...@googlegroups.com
在Firefox/Chrome下编码一切正常,中文正常显示。
所有设置都是UTF-8编码
weilz
unread,
Sep 25, 2012, 4:47:06 AM
9/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to socketi...@googlegroups.com
不好意思,忘记说测试环境了,我实在IE8中测试的,对了,可以加个QQ号吗,以便当面请教,不会耽误您太多时间,谢谢!
在 2012年9月25日星期二UTC+8下午4时43分54秒,yongboy写道:
yongboy
unread,
Sep 25, 2012, 5:00:56 AM
9/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to socketi...@googlegroups.com
QQ号码早已发送到阁下邮箱
yongboy
unread,
Sep 25, 2012, 5:05:01 AM
9/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to socketi...@googlegroups.com
这个可能需要设置客户端和服务器端都需要编码才可以。
建议阅读:
http://q.cnblogs.com/q/32586/
Reply all
Reply to author
Forward
0 new messages