Encode/Decode Tag Examples

The <dotj:encode> and <dotj:decode> tags can be used to encode and decode values to and from your page. Encoding is done using simple base64 encoding and should not be used as a means of encryption.

Encode Tag:

Example Value Result
Example 1 some sample text c29tZSBzYW1wbGUgdGV4dA==
Example 2 January 15th, 2002 SmFudWFyeSAxNXRoLCAyMDAy


Decode Tag:

Example Value Result
Example 1 c29tZSBzYW1wbGUgdGV4dA== some sample text
Example 2 SmFudWFyeSAxNXRoLCAyMDAy January 15th, 2002


Both Tags:

Example Value Result
Example 1 <dotj:decode>
  <dotj:encode value="some sample text"/>
</dotj:decode>
some sample text
Example 2 <dotj:decode>
  <dotj:encode value="January 15th, 2002"/>
</dotj:decode>
January 15th, 2002



          Back to Samples page


home : products : pricing : company : contact us : samples : download : forums : customers

Copyright © 2000-2004 dotJ Software Inc. All rights reserved.