Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jan 28, 2010 12:04 pm 
Offline
Senior Newbie

Joined: Thu Jan 28, 2010 11:54 am
Posts: 8
I have a java webapp I made (wiki) where you can enter text into a web form and save it on the server (edit page) ... anyway I made it so it can handle utf-8(foreign chars) and it works great on my local box (ubuntu 8.04) but when I run the exact same exact thing on my linode(tcolar), foreign character don't work .. it's as if the OS does not support UTF-8 ... so my question is, could the Linode somehow not support UTF-8, or not be setup for it ??

When I ssh a file from my machine with utf-8 into my linode it also appears that utf-8 chars get mangled (or maybe the ssh term can't display them, though it works with my other machines)

Any ideas ?

Thanks much.


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 12:27 pm 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
what OS are you running on your linode?

did you generate the right locales on it?


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 12:55 pm 
Offline
Senior Newbie

Joined: Thu Jan 28, 2010 11:54 am
Posts: 8
Debian 4.0 Disk Image
(Latest 2.6 Stable (2.6.18.8-linode22))

I thought Debian 4 / etch was unicode by default, can you elaborate on generating the right locales ?


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 12:59 pm 
Offline
Senior Newbie

Joined: Thu Jan 28, 2010 11:54 am
Posts: 8
Will try this once more:
dpkg-reconfigure locales


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 1:12 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Also check that your web frontend is 1) encoded in UTF-8 and 2) accepting data in UTF-8:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<form action="whatever.jsp" accept-charset="UTF-8"> ... </form>


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 1:26 pm 
Offline
Senior Newbie

Joined: Thu Jan 28, 2010 11:54 am
Posts: 8
Yeah that I did, like i said it works fine on my own machine anyway.
The one difference i have on my linode is that the app server is proxied behind apache, but as far as i know apache is set to utf-8 as well.
Also I've compared response headers etc... and they all seem fine (utf-8)


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 1:29 pm 
Offline
Senior Newbie

Joined: Thu Jan 28, 2010 11:54 am
Posts: 8
took apache out of the equation and still the same.

Another diff is that my own machine uses tomcat and the server jetty, though they both suppose to support utf8 fine.

Will try to use the EXACT same app server and see.


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 2:06 pm 
Offline
Senior Newbie

Joined: Thu Jan 28, 2010 11:54 am
Posts: 8
Same jetty version on both machine and still it works on my ubuntu 8.04 and not on the linode debian 4.0 --- weird !


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 2:24 pm 
Offline
Junior Member
User avatar

Joined: Tue Apr 28, 2009 8:57 pm
Posts: 38
Location: Pale Blue Dot
tcolar wrote:
Same jetty version on both machine and still it works on my ubuntu 8.04 and not on the linode debian 4.0 --- weird !


Supposing you have properly configurated locales in your server, just check you have in /etc/ssh/sshd_config this

Code:
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*


P.S. Why are you using old_stable (Debian 4.0) instead of current stable (Debian 5.0)?


Top
   
 Post subject:
PostPosted: Thu Jan 28, 2010 4:45 pm 
Offline
Senior Newbie

Joined: Thu Jan 28, 2010 11:54 am
Posts: 8
No good reason other than I haven't upgarded.

What's the proper way to do that with a linode anyway, just do a standard debian dist-upgrade process ?


Top
   
 Post subject:
PostPosted: Fri Jan 29, 2010 2:41 pm 
Offline
Junior Member
User avatar

Joined: Tue Apr 28, 2009 8:57 pm
Posts: 38
Location: Pale Blue Dot
tcolar wrote:
No good reason other than I haven't upgarded.

What's the proper way to do that with a linode anyway, just do a standard debian dist-upgrade process ?


It's just a standard process provided that you've a standard installation.

Two suggestions (official Debian information):

* Upgrades from previous releases

* Issues to be aware of for lenny

Don't forget to update the kernel as well.


Top
   
 Post subject:
PostPosted: Sat Jan 30, 2010 11:01 am 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
Why would Linux settings have anything to do with this? This is between Java and your browser. If you're using the same version Java and app server, and the files were transfered as binary, you should get the exact same result.


Top
   
 Post subject:
PostPosted: Sat Jan 30, 2010 12:29 pm 
Offline
Junior Member
User avatar

Joined: Tue Apr 28, 2009 8:57 pm
Posts: 38
Location: Pale Blue Dot
BarkerJr wrote:
Why would Linux settings have anything to do with this? This is between Java and your browser. If you're using the same version Java and app server, and the files were transfered as binary, you should get the exact same result.


Because tcolar asked two questions as a matter of fact and I'm replying to this problem:

tcolar wrote:
When I ssh a file from my machine with utf-8 into my linode it also appears that utf-8 chars get mangled (or maybe the ssh term can't display them, though it works with my other machines)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group