Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to run a project using UTF-8 encoding?
How to run a project using UTF-8 encoding? [message #459994] Sun, 10 December 2006 18:07 Go to next message
Eclipse UserFriend
Originally posted by: partyhut.internode.on.net

Hi all,

My ResourceBundle property file works perfect under RCP but doesn't work
for my SWT/Jface application... I used UTF-8 for both my project and
property file but no matter how I run my project from eclipse or change
the language of my winXP, Eclipse alway run it using ISO-8859-1... any
idea?

Thank you.
Re: How to run a project using UTF-8 encoding? [message #460001 is a reply to message #459994] Mon, 11 December 2006 05:40 Go to previous messageGo to next message
Eclipse UserFriend
For some reason, the properties files are always interpreted according to the local file.encoding (which is silly). You can use the 'native2ascii' program that comes with Java to encode any non-ASCII characters as unicode escape sequences e.g. \u0041 instead, which will work regardless of local file encoding.

Alex.
Re: How to run a project using UTF-8 encoding? [message #460027 is a reply to message #460001] Mon, 11 December 2006 17:12 Go to previous message
Eclipse UserFriend
Originally posted by: partyhut.internode.on.net

Thank you Alex! It worked! Unicode looks ugly in my properties file, but
I can live with that.

Alex Blewitt wrote:
> For some reason, the properties files are always interpreted according to the local file.encoding (which is silly). You can use the 'native2ascii' program that comes with Java to encode any non-ASCII characters as unicode escape sequences e.g. \u0041 instead, which will work regardless of local file encoding.
>
> Alex.
Previous Topic:classpath
Next Topic:using AbstractPreferenceInitializer versus Activator.start()
Goto Forum:
  


Current Time: Mon Mar 17 05:18:26 EDT 2025

Powered by FUDForum. Page generated in 0.05983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top