Differences
This shows you the differences between two versions of the page.
oql:soloistexplorer [2011/07/20 17:01] predrag.radenkovic [6.3.1. Problem with UTF-8 encoding when using GET method] |
oql:soloistexplorer [2011/08/05 10:16] (current) milorad.poptosic [Problem with UTF-8 encoding when using GET method] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== SOLoist Explorer ====== | ====== SOLoist Explorer ====== | ||
- | SOLoist Explorerâ„¢ is a simple tool that provides a HTTP interface for: | + | SOLoist Explorerâ„¢ is a simple tool that provides an HTTP interface for: |
* writing and executing OQL queries (results in HTML or Excel sheet; see generated SQL, etc.) | * writing and executing OQL queries (results in HTML or Excel sheet; see generated SQL, etc.) | ||
* browsing the UML model | * browsing the UML model | ||
Line 47: | Line 47: | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
- | ==== 6.3.1. Problem with UTF-8 encoding when using GET method ==== | + | ==== Problem with UTF-8 encoding when using GET method ==== |
There might be a problem if some servlet containers (e.g. Tomcat) do not use UTF-8 to parse request parameters from the query string of the request URI. | There might be a problem if some servlet containers (e.g. Tomcat) do not use UTF-8 to parse request parameters from the query string of the request URI. | ||
- | There are two soloutions for this problem: | + | There are two soloutions to this problem: |
- solution(partial): Make OQLServlet use POST method instead. | - solution(partial): Make OQLServlet use POST method instead. | ||
- solution (Tomcat only): Make Tomcat use UTF-8 encoding for request parameters encoded in query string. Edit server.xml and add useBodyEncodingForURI="true" to Connector, for example: <file xml><Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"/></file> Alternatively, you might use URIEncoding="UTF-8". | - solution (Tomcat only): Make Tomcat use UTF-8 encoding for request parameters encoded in query string. Edit server.xml and add useBodyEncodingForURI="true" to Connector, for example: <file xml><Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"/></file> Alternatively, you might use URIEncoding="UTF-8". | ||
- | More info about configuration tomcat you can find on [[http://tomcat.apache.org/tomcat-7.0-doc/config/http.html|Apache Tomcat website]]. | + | More info about configuring Apache Tomcat can be found on [[http://tomcat.apache.org/tomcat-7.0-doc/config/http.html|Apache Tomcat website]]. |