My mistakes

Posts Tagged ‘Java

The Apache Tika™ toolkit detects and extracts metadata and structured text content from various documents using existing parser libraries

For more information follow the below link
http://tika.apache.org/

Advertisements
Tags:

Things to take care

1) Set the contentType on the jsp via

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

2) Set this tag inside the jsp:
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8" />

3) Add the below filter to the web.xml

<!– Ensure UTF-8 encoded pages so that certain characters are displayed and submitted correctly –>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

4) Make sure the database fields have appropriate collation like utf-8, utf-16

Tags:

Sometimes this issue may related to the protocol which we are using to connect with aws dynamodb. By default it is using the protocol https to connect with the AWS. So try the http protocol.

To resolve this issue try the below code:

amazonDynamoDBClient = new AmazonDynamoDBClient(credentials);
amazonDynamoDBClient .setEndpoint(“http:///&#8221;);

Note: replace the with the appropriate endpoint