bsed / ala

Automatically exported from code.google.com/p/ala
0 stars 0 forks source link

Incorrect character encoding of search results #525

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce:
1) Go to fieldcapture.ala.org.au
2) Select the projects tab
3) Enter "phase" into the filter box.
Note the " Farming for Sustainable Soils ? Phase 2" project includes a ? 
instead of an ndash/mdash.

Go to the project page and note the project name and description display 
correctly.

I suspect something is going wrong in the de-serialization of the search 
results as the web service call to ecodata (from fieldcapture) has a response 
with the incorrect encoding.

Original issue reported on code.google.com by chris.go...@gmail.com on 15 Jan 2014 at 5:05

GoogleCodeExporter commented 9 years ago
Fixed by changing

response.setContentType("application/json")

to 

response.setContentType("application/json; charset=\"UTF-8\"")

Original comment by nickdos on 16 Jan 2014 at 1:03