Hi,
I use a simple approach to i18n.
HomePage.html for English
HomePage_fr.html for French
Problem: French accents do not appear properly.
In my app class I use
getSettings().setDefaultMarkupEncoding("UTF-8");
In HomePage.java I use
add(new Link("english") {
public void onClick() {
getSession().setLocale(Locale.ENGLISH);
}
}.add(new Image("enFlag")));
add(new Link("french") {
public void onClick() {
getSession().setLocale(Locale.FRENCH);
}
}.add(new Image("frFlag")));
The following is the beginning of HomePage_fr.html.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:wicket="http://wicket.sourceforge.net/">
<head>
<title>Application Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="Dzenan Ridjanovic" />
<meta name="description"
content="Application home page." />
<meta name="keywords"
content="Java, server-side Java, open source software,
dynamic web applications, frameworks, Wicket,
software engineering education" />
<link rel="stylesheet" type="text/css" media="screen" href="app.css" />
</head>
Everything works well except special characters. For example, the link
name Catégories
<a class = "blink" wicket:id = "categoriesUpdatePage">
Catégories (M-A-J)
</a>
displays
Cat�gories (M-A-J)
What else should I do?
Thanks,
Dzenan
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user