Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » xwt Internationalization: how i can use UTF-8 encoding in XWT(how i can use UTF-8 encoding in XWT)
xwt Internationalization: how i can use UTF-8 encoding in XWT [message #559919] Mon, 20 September 2010 07:30 Go to next message
xuxian  is currently offline xuxian
Messages: 1
Registered: September 2010
Junior Member
As I known, for Internationalization, RAP architecture has the follow method to set encoding:

RWT.NLS.getISO8859_1Encoded( BUNDLE_NAME, clazz );

For Internationalization, XWT use follow method:
<Button Text="{x:Static java:Messages.title}" />

public class Messages extends NLS {
private static final String BUNDLE_NAME = "com.zte.ums.aos.web.fm.client.I18n.messages"; // NON-NLS-1

public static String title;

static {
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
}


But now i want to use the UTF-8 encoding in my XWT file, but i do not known how I can do it , please help me, thanks very much?



[Updated on: Mon, 20 September 2010 07:34]

Report message to a moderator

Re: xwt Internationalization: how i can use UTF-8 encoding in XWT [message #639373 is a reply to message #559919] Tue, 16 November 2010 05:09 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
How about using the header:
<?xml version="1.0" encoding="UTF-8"?>

Best regards
Yves YANG
Previous Topic:[XWT] ToolItem.enabled with MultiBinding
Next Topic:Consistent duplication of custom xwt UI
Goto Forum:
  


Current Time: Thu Aug 21 08:19:26 EDT 2014

Powered by FUDForum. Page generated in 0.02252 seconds