Scarab commit: svn commit: r10837 - trunk: . xdocs

Hussayn Dabbous <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2009-07-26 11:13:15-0700
New Revision: 10837

Modified:
   trunk/project.properties
   trunk/xdocs/scarab_properties.xml

Log:
SCB2995:

Added new velocity property to allow other character encodings besides ISO-8859-1 in velocity templates.


Modified: trunk/project.properties
Url: http://scarab.tigris.org/source/browse/scarab/trunk/project.properties?view=diff&pathrev=10837&r1=10836&r2=10837
==============================================================================
--- trunk/project.properties	(original)
+++ trunk/project.properties	2009-07-26 11:13:15-0700
@@ -1028,6 +1028,7 @@
 #
 #   session.timeout
 #   services.UploadService.repository
+#   services.VelocityService.input.encoding
 #   searchindex.path
 #   searchindex.analyzerClass
 # 
@@ -1038,6 +1039,20 @@
 
 session.timeout=1800
 services.UploadService.repository=WEB-INF
+
+# ---------------------------------------
+# services.VelocityService.input.encoding
+# ---------------------------------------
+#
+# 
+#  Normally all Velocity macros will be read in as ISO-8859-1.
+#  If you want your macros to be interpreted with another encoding,
+#  you can change this property here.
+#  Note: It generally makes sense to set this property to UTF-8
+#  when you decide to internationalize your Scarab instance!
+# 
+
+services.VelocityService.input.encoding=ISO-8859-1
 searchindex.path=WEB-INF/index
 
 # -------------------------

Modified: trunk/xdocs/scarab_properties.xml
Url: http://scarab.tigris.org/source/browse/scarab/trunk/xdocs/scarab_properties.xml?view=diff&pathrev=10837&r1=10836&r2=10837
==============================================================================
--- trunk/xdocs/scarab_properties.xml	(original)
+++ trunk/xdocs/scarab_properties.xml	2009-07-26 11:13:15-0700
@@ -1159,6 +1159,23 @@
          <customization modification="optional">advanced</customization>
         <file/>
       </property>
+	  
+      <property>
+        <name>services.VelocityService.input.encoding</name>
+        <default>ISO-8859-1</default>
+        <comment/>
+        <type>Runtime</type>
+        <customization modification="optional">advanced</customization>
+        <file/>
+        <details>
+          Normally all Velocity macros will be read in as ISO-8859-1.
+          If you want your macros to be interpreted with another encoding,
+          you can change this property here.
+          Note: It generally makes sense to set this property to UTF-8
+          when you decide to internationalize your Scarab instance!
+        </details>
+      </property>
+
 
       <property>
         <name>searchindex.path</name>

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2375692
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.