Re: UTF-8 on OSX 10.5 server deployment not working correctly.

Stephen R.Smith <[email protected]> Tue, 27 Oct 2009 19:13:16 -0400
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi Chad,

Have a look here:

http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Development-Localization+and+Internationalization

And specifically this section:

Eclipse Default Encoding
I prefer to keep my entire project in UTF-8 format for consistency.  
You can set that in your Eclipse General->Workspace preferences. The  
exception, of course will be your Localizable.strings files. Those  
have to be in UTF-16 format. I generally get warnings about the WOO  
file for my initial Main component whenever I create a new project,  
but if you right-click your Main.wo you'll see "Properties" at the  
very bottom of the contextual menu. Open that and flip your encoding  
between project default and UTF-8, save it, then open it back up and  
return it to the project default and the problem should go away. This  
is also how you set your Localized.strings file to UTF-16 even if the  
rest of your project is not UTF-16.

We were having the same issue you're describing until we resaved the  
Localizable.strings files as UTF-16.

:Steve

-- 
Stephen R. Smith
Partner

Align Software Inc.
2054 Halton Place, Burlington, Ontario, Canada, L7R 1P7
T  : 905.633.9178
C : 905.464.4440
F  : 905.634.1064

[email protected]
http://www.alignsoft.com




On Oct 26, 2009, at 12:28 PM, Chad Pilkington wrote:

> I have applications running on OSX 10.4 server in deployment with  
> UTF-8 encoding and everything works great.  It also works fine in  
> development on both XCODE on OSX 10.4 and eclipse on OSX 10.5.  I  
> have a problem on OSX 10.5 deployment however and I am getting  
> garbage characters where I would expect spanish characters.  When I  
> check the browser settings they seem to be picking up the fact that  
> the page should be UTF-8 but the characters are just not correct.   
> It is just the html pages that are affected.  When I generate PDFs  
> in OSX 10.5 deployment I get the correct characters.  Does anyone  
> know what I need to do to correct this?  I have the usual setHeader  
> code in my Session appendToResponse that I have always had.
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev