Is there anything different about internationalizing a Dialog?

30 views
Skip to first unread message

Mike Dee

unread,
Nov 7, 2012, 10:48:34 PM11/7/12
to google-we...@googlegroups.com
I just did my first dialog box in GWT - with uibinder.  Strangely the code I use for internationalizing didn't work (completely).  It looks like the dialog box is trying to be rendered in iso-8859-1 because some French chars are not recognized.

Here is the code that appears at the top of a uibinder view (generated in eclipse by the gwt plugin).  I also put it at the top of the dialog boxes uibinder.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui' 
xmlns:p1="urn:import:com.google.gwt.user.datepicker.client"
ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
    ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"
    ui:generateLocales="default" xmlns:p2="urn:import:com.google.gwt.user.cellview.client">

This works in all my view's but not in the dialog box.

Any ideas?

Joseph Lust

unread,
Nov 8, 2012, 12:44:05 PM11/8/12
to google-we...@googlegroups.com
Do you have your html host page set to UTF-8 using the meta tag in the header?

 <meta charset=utf-8>

Sincerely,
Joseph
Reply all
Reply to author
Forward
0 new messages