Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Enforce UTF-8 encoding by product creation
Enforce UTF-8 encoding by product creation [message #537676] Thu, 03 June 2010 11:09 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: June 2010
Junior Member
Hi,

I have to set an RCP-Product that use utf-8 as encoding system. Where can I set this ?

Thanks for your help

toni
Re: Enforce UTF-8 encoding by product creation [message #537703 is a reply to message #537676] Thu, 03 June 2010 12:04 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

toni@biolinux.ch wrote:
> Hi,
>
> I have to set an RCP-Product that use utf-8 as encoding system. Where
> can I set this ?
> Thanks for your help

When you first start up, can you call
ResourcesPlugin.getWorkspace().getRoot().setDefaultCharset(S tring
charset, IProgressMonitor monitor) ?

You also might have to start with -Dfile.encoding=UTF-8 ... but I'm not
sure what that will do if you try and open a file encoded differently.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Error Log
Next Topic:adapters extension point
Goto Forum:
  


Current Time: Fri Nov 28 20:54:22 GMT 2014

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

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