Skip to content

Commit 85704e0

Browse files
committed
for muti-byte languages
1 parent af2e0bb commit 85704e0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

tutorial/todo/WebContent/index.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
1+
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
22
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
33
<html>
44
<head>
5-
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
77
<title>Azure DocumentDB Java Sample</title>
88

tutorial/todo/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
</plugins>
2727
</build>
2828
<dependencies>
29+
<dependency>
30+
<groupId>javax.servlet</groupId>
31+
<artifactId>javax.servlet-api</artifactId>
32+
<version>3.0.1</version>
33+
</dependency>
2934
<dependency>
3035
<groupId>com.google.code.gson</groupId>
3136
<artifactId>gson</artifactId>
@@ -49,7 +54,7 @@
4954
<dependency>
5055
<groupId>com.microsoft.azure</groupId>
5156
<artifactId>azure-documentdb</artifactId>
52-
<version>0.9.0</version>
57+
<version>1.0.1</version>
5358
</dependency>
5459
</dependencies>
5560
</project>

tutorial/todo/src/com/microsoft/azure/documentdb/sample/ApiServlet.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ protected void doGet(HttpServletRequest request,
6868
break;
6969
}
7070

71+
response.setCharacterEncoding("UTF-8");
7172
response.getWriter().println(apiResponse);
7273
}
7374

0 commit comments

Comments
 (0)