Login

mvnForum

mvnForum Homepage Welcome Guest
  Search  
  Index  | Recent Threads  | Unanswered Threads  | List Polls  | Public Albums  | Who's Online  | Help


Quick Go »


No member browsing this thread
Thread Status: Active
Total posts in this thread: 6
Post new Thread
Author
Previous Thread This topic has been viewed 1789 times and has 5 replies Next Thread
Male MaximRagozin
Stranger



USA
Joined: Mar 29, 2005
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
LoginName в UNICODE

Кто-н. нашел как это делать? Я начал править код в исходниках, но не хотелось бы углубляться если уже есть какие-н. варианты изменений в настройках.
[Apr 12, 2005 3:40:09 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.xytopok.net [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: LoginName в UNICODE

Hi, this is not recommend and is not supported. However, you can enable it by edit net.myvietnam.mvncore.util.StringUtil.checkGoodName() (there is comment in the source code)
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Apr 13, 2005 2:02:11 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male MaximRagozin
Stranger



USA
Joined: Mar 29, 2005
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
Re: LoginName в UNICODE

Actually it is not that simple.

1. SQL has to be changed as well. Some databases (MaxDB as an example) cannot do "lower(?)" on UNICODE string. So the username has to be lowercased in Java first.

2. Request encoding has to be known or set before any other processing.

This is a code fragment from SelectLanguageFilter which I am using:


if (request.getCharacterEncoding() != null) {
if (log.isDebugEnabled()) {
log.debug("doSelectLanguage() : request.CharacterEncoding" + request.getCharacterEncoding() + " from request.");
}
} else {
try {
request.setCharacterEncoding("UTF-8");
if (log.isDebugEnabled()) {
log.debug("doSelectLanguage() : request.CharacterEncoding" + request.getCharacterEncoding() + " set to UTF-8 manually.");
}
} catch (java.io.UnsupportedEncodingException e) {
log.error("doSelectLanguage() : request.setCharacterEncoding() : UnsupportedEncodingException", e);
}
}


Whenever I change code on my side, I'll send you a code fragments for review.
[Apr 13, 2005 1:25:04 PM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.xytopok.net [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: LoginName в UNICODE

Hi,

Currently mvnForum already calls request.setCharacterEncoding("utf-8"); in RequestProcessorDefault.java. The compression filter also calls this method smile

If you have any improvement, just let me know.

Thanks smile
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Apr 19, 2005 11:45:33 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Male MaximRagozin
Stranger



USA
Joined: Mar 29, 2005
Post Count: 12
Status: Offline
Reply to this Post  Reply with Quote 
Re: LoginName в UNICODE

To be honest, I've almost lost track of changes I am making to source code. I work on several fixes\functionalitie which I want to implement before start advs my forum. Have you had precedent that you/your company granted a comit permission on CVS?
[Apr 20, 2005 2:13:29 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.xytopok.net [Link] Report threatening or abusive post: please login first  Go to top 
Male minhnn
mvnForum Developer
Member's Avatar

Vietnam
Joined: Oct 16, 2002
Post Count: 2956
Status: Offline
Reply to this Post  Reply with Quote 
Re: LoginName в UNICODE

To be honest, I've almost lost track of changes I am making to source code. I work on several fixes\functionalitie which I want to implement before start advs my forum. Have you had precedent that you/your company granted a comit permission on CVS?

Hi,

Thanks, if you would like to join the development team, please read DEVELOPER.txt for information related to joining the team. You should also agree to grant MyVietnam Group the copyright to all the code you commit to CVS. Then send me an email with your sourceforge id and I will add you to the project.

Thanks in advance for your help rose
----------------------------------------
Minh Nguyen
mvnForum Developer
Want a free, open source Java Jsp/Servlet forum, get mvnForum at http://www.mvnForum.com

http://www.DienDanLinux.org
[Apr 24, 2005 2:35:41 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.MyVietnam.net    minhnn_mvn [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread