Hi, I've recently made use of Openvz in our environment. My experience is that it works very well. Our servers are mainly Apache/Tomcat webservers and I use Centos-default template. However, I've stumbled across one thing that I've not been able to solve its that url-encode-ing behaves differently on the VE than on the host it selv. That is to say when I urlencode for example "árar" I get from the VE %3Frar %3Frar but on the host I get %E1rar %E1rar which what I expected. I've made a small test rutine in java to test it, I pasted it in here below. I wonder if any of you have come across this? All help would be greatly appreciated. TIA Arnar -------------------------- Code snip ------------------ import java.net.*; import java.io.*; public class urlenctest { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String enc=""; try{ if( args.length > 1 ){ enc = args[1]; } System.out.println(URLEncoder.encode(args[0])); System.out.println(URLEncoder.encode(args[0], enc)); }catch( UnsupportedEncodingException ue ){ ue.printStackTrace(); } } }
I guess you have different default locales on the host and inside VE: # echo $LANG # set | grep LC also please keep in mind, that some of the templates have no other locales except for C. So you need to make: # rpm -ihv --force glibc-common.rpm in order to restore all locales. Search forum for this.
Hi, sorry but my initial email didn't contain everything i had done. I had already tryied to tweak the LANG environment and both the host and the VE have now en_US.iso8859-1 set|grep LC gives nothing in both servers and glibc-common is already installed. I'm using Centos default template if that says anything. Do you believe I need to reinstall glibc-common? TA Arnar
yes, you need to reinstall, since some templates have stripped locales(!) for much smaller size. check this thread: http://forum.openvz.org/index.php?t=tree&goto=7804&& amp;srch=postgresql#msg_7804
Hi guys, this solved the issue. The thing is to fetch the glibc-common from the original distribution. Thanks for the help. BR. Arnar