The upload-charset-finder-class Element"

From Documentation
m (Created page with '{{ZKConfigurationReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- |   |   |   |} {{ZKConfig…')
 
m (correct highlight (via JWB))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{ZKConfigurationReferencePageHeader}}
 
{{ZKConfigurationReferencePageHeader}}
 +
 +
'''Syntax:'''
 +
<upload-charset-finder-class>''a_class_name''</upload-charset-finder-class>
 +
 +
[Default: null]
 +
 +
It specifies the finder that determines charset (aka.., encoding) for the uploaded text files if no charset is specified with the content type.
 +
 +
If the uploaded file is binary, there is no encoding issue at all.
 +
 +
The finder must implement the <javadoc type="interface">org.zkoss.zk.ui.util.CharsetFinder</javadoc> interface. Then, when a text file is uploaded, the <code>getCharset</code> method is called and it can determines the encoding based on the content type and/or the content of the uploaded file.
 +
 +
Notice that it has the higher priority than the <code>upload-charset</code> element, see above.
  
 
=Version History=
 
=Version History=

Latest revision as of 10:34, 19 January 2022


The upload-charset-finder-class Element


Syntax:

<upload-charset-finder-class>a_class_name</upload-charset-finder-class>
[Default: null]

It specifies the finder that determines charset (aka.., encoding) for the uploaded text files if no charset is specified with the content type.

If the uploaded file is binary, there is no encoding issue at all.

The finder must implement the CharsetFinder interface. Then, when a text file is uploaded, the getCharset method is called and it can determines the encoding based on the content type and/or the content of the uploaded file.

Notice that it has the higher priority than the upload-charset element, see above.

Version History

Last Update : 2022/01/19


Version Date Content
     



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.