character-encoding-filter

Character encoding filter for java-web, if you are sure your uri encoding is correct, please DO use org.springframework.web.filter.CharacterEncodingFilter instead.

License

License

GroupId

GroupId

com.github.zhanhb
ArtifactId

ArtifactId

character-encoding-filter
Last Version

Last Version

2.1.6.4
Release Date

Release Date

Type

Type

jar
Description

Description

character-encoding-filter
Character encoding filter for java-web, if you are sure your uri encoding is correct, please DO use org.springframework.web.filter.CharacterEncodingFilter instead.
Project URL

Project URL

https://github.com/zhanhb/character-encoding-filter/
Source Code Management

Source Code Management

https://github.com/zhanhb/character-encoding-filter

Download character-encoding-filter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.zhanhb/character-encoding-filter/ -->
<dependency>
    <groupId>com.github.zhanhb</groupId>
    <artifactId>character-encoding-filter</artifactId>
    <version>2.1.6.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.zhanhb/character-encoding-filter/
implementation 'com.github.zhanhb:character-encoding-filter:2.1.6.4'
// https://jarcasting.com/artifacts/com.github.zhanhb/character-encoding-filter/
implementation ("com.github.zhanhb:character-encoding-filter:2.1.6.4")
'com.github.zhanhb:character-encoding-filter:jar:2.1.6.4'
<dependency org="com.github.zhanhb" name="character-encoding-filter" rev="2.1.6.4">
  <artifact name="character-encoding-filter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.zhanhb', module='character-encoding-filter', version='2.1.6.4')
)
libraryDependencies += "com.github.zhanhb" % "character-encoding-filter" % "2.1.6.4"
[com.github.zhanhb/character-encoding-filter "2.1.6.4"]

Dependencies

provided (1)

Group / Artifact Type Version
javax.servlet : servlet-api jar 2.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

character-encoding-filter

========================= This is a filter that solve GET form or POST form encoding problem.

Usage

First put the CharacterEncodingFilter.jar to the WEB-INF/lib directory then add these codes to WEB-INF/web.xml

<filter>
	<filter-name>character-encoding-filter</filter-name>
	<filter-class>com.github.zhanhb.filter.CharacterEncodingFilter</filter-class>
	<init-param>
		<description>Encoding for content and query string, default UTF-8.</description>
		<param-name>characterEncoding</param-name>
		<param-value>UTF-8</param-value>
	</init-param>
</filter>
<filter-mapping>
	<filter-name>character-encoding-filter</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>

or if your encoding is UTF-8 you can config your web.xml more simple.

<filter>
	<filter-name>character-encoding-filter</filter-name>
	<filter-class>com.github.zhanhb.filter.CharacterEncodingFilter</filter-class>
</filter>
<filter-mapping>
	<filter-name>character-encoding-filter</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>

Maven Clone:

<dependency>
  <groupId>com.github.zhanhb</groupId>
  <artifactId>character-encoding-filter</artifactId>
  <version>2.1.6.4</version>
</dependency>

Versions

Version
2.1.6.4
2.1.6.3
2.1.6.2
2.1.6.1
2.1.6