hitrust / google-app-engine-samples

Automatically exported from code.google.com/p/google-app-engine-samples
0 stars 0 forks source link

search example not working with unicode characters #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In /trunk/search/java/war/index.jsp

What steps will reproduce the problem?
1. run the example
2. enter some chinese character or other unicode character
3. they got entered into the indexer as html coded text, such as 乂

What is the expected output? What do you see instead?
they should be entered as UTF-8 encoded values

What version of the product are you using? On what operating system?
appengine SDK 1.6.6

Please provide any additional information below.
the html encoding issue will be resolved by adding the following line to the 
beginning of index.jsp.

<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="utf-8"%>

Original issue reported on code.google.com by luyixi...@gmail.com on 4 Jun 2012 at 7:40