#SCB2995 (Resolved) Velocity temjplates are always assumed to be encoded in ISO-8859-1. make this customizable

Hussayn Dabbous <[email protected]> Sun, 26 Jul 2009 20:19:00 +0200 (CEST)
Newsgroups gmane.comp.java.scarab.issues
Message-ID <[email protected]>
*SCB2995 [Enhancement] - Velocity temjplates are always assumed to be encoded in ISO-8859-1. make this customizable*

-------------------------------------------------------------------------------
*Reasons for the changes*
-------------------------------------------------------------------------------
  - started implementation.
  - resolved in svn 10837

** null:  () **


-------------------------------------------------------------------------------
*Personnel changes*
-------------------------------------------------------------------------------
  - Assigned to:  dabbous     (New) 


-------------------------------------------------------------------------------
*Attribute changes*
-------------------------------------------------------------------------------
  - Summary:  Velocity temjplates are always assumed to be encoded in ISO-8859-1. make this customizable     (New) 
  - Status:  Unconfirmed     (New) 
  - Target milestone:  0.23     (New) 
  - Short description:
    "In the default Scarab distribution there is no dependency to ISO-8859-1 or any other characterset inside the velocity templates (because all l10n stuff has been cleanly factored out of the templates. 

But when customizing your own Scarab, you might want to add onscreen data which is NOT embedded from $l10n but just included verbatim.

Currently this works only as long as your velocity templates contain only ISO-8859-1 compatible characters. It makes much sense to be able to customize the way how templates are read by the velocity engine to support arbitrary charactersets."
  - Priority:  3-Normal     (New) 
  - Status:  Unconfirmed --> In progress  
  - Status:  In progress --> Resolved  


*Comment Hussayn Dabbous*

I added a velocity property to the Scarab runtime-properties
with the default value as defined from Velocity:

services.VelocityService.input.encoding=ISO-8859-1

Now if you need to customize your templates with another encoding
just set this property in your build.properties (or runtime properties)
and restart Scarab. Your problems with character encoding should be solved.

-------------------------------------------------------------------------------
Activity generated by Hussayn Dabbous ([email protected]) at 07/26/2009 20:09

[Scarab]: http://www.solitone.org/scarab/issues/id/SCB2995

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=458&dsMessageId=2375693

To unsubscribe from this discussion, e-mail: [[email protected]].