projects
/
frank.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add translations for French and Japanese
[frank.git]
/
prod
/
net
/
jaekl
/
frank
/
ViewSchedule.java
diff --git
a/prod/net/jaekl/frank/ViewSchedule.java
b/prod/net/jaekl/frank/ViewSchedule.java
index b13258b3a8ce66227652ee6880886823601528ce..a2018f48707bde248b536536d068cb69925d038d 100644
(file)
--- a/
prod/net/jaekl/frank/ViewSchedule.java
+++ b/
prod/net/jaekl/frank/ViewSchedule.java
@@
-21,6
+21,7
@@
public class ViewSchedule extends HttpServlet {
static final String STOP = "stop";
static final String ROUTE = "route";
static final String LANG = "lang";
static final String STOP = "stop";
static final String ROUTE = "route";
static final String LANG = "lang";
+ static final String UTF_8 = "UTF-8";
ErrorHandler m_errorHandler;
ErrorHandler m_errorHandler;
@@
-65,6
+66,7
@@
public class ViewSchedule extends HttpServlet {
throws ServletException, IOException
{
res.setContentType("text/html");
throws ServletException, IOException
{
res.setContentType("text/html");
+ res.setCharacterEncoding("utf8"); // Seems to be necessary when running in Japanese
PrintWriter pw = res.getWriter();
Locale locale = getLocale(req);
PrintWriter pw = res.getWriter();
Locale locale = getLocale(req);