Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows下有乱码现象 #22

Open
zbore opened this issue Dec 27, 2016 · 6 comments
Open

Windows下有乱码现象 #22

zbore opened this issue Dec 27, 2016 · 6 comments

Comments

@zbore
Copy link

zbore commented Dec 27, 2016

windows下查询数据部分乱码, 发现保存数据库的数据也是乱码的

123

@typ0520
Copy link
Owner

typ0520 commented Dec 28, 2016

应该是你数据库的编码设置的不对,需要设置成UTF8

@zbore
Copy link
Author

zbore commented Dec 28, 2016

数据库已经设置为UTF8, 但貌似没有效果,会不会是那个模板tmplate导致的, 在那里要处理下字符集
22
33

@typ0520
Copy link
Owner

typ0520 commented Dec 28, 2016

不是模板,出现乱码的文字都是从后台过来的

@zbore
Copy link
Author

zbore commented Dec 29, 2016

比如说上面那个登陆,第一次初始化数据库后,直接登陆,这时候数据库里面没有数据,但是页面返回乱码,但是浏览器栏显示中文是正确的, 说明还是编码不正确...

@typ0520
Copy link
Owner

typ0520 commented Dec 29, 2016

你是用的war包部署的,还是直接用代码跑的

@zbore
Copy link
Author

zbore commented Jan 3, 2017

下载的war包跑的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants