in project code can see filterdispatcher being extended set default encoding "utf-8". question there other better way can same or best way.
ps: initial development done in country on non-english windows pcs.
actually there struts.i18n.encoding constant sets default locale , encoding scheme. can set in struts.properties file:
struts.i18n.encoding=utf-8 or in struts.xml file:
<constant name="struts.i18n.encoding" value="utf-8" /> btw: struts.i18n.encoding should set utf-8 default in struts2 anyway.
btw no.2: filterdispatcher deprecated since struts 2.1.3. if using version higher use strutsprepareandexecutefilter instead.
Comments
Post a Comment