Modifying DBCS unicode characters using the wsadmin tool and the Jython scripting language
 Technote (troubleshooting)
 
Problem(Abstract)
How to modify IBM® WebSphere® Application Server environment variables that have unicode chars, using the wsadmin tool and the Jython scripting language.
 
Cause
The wsadmin tool cannot recognize the specific Python unicode-escaped string when parsing the object name with DBCS characters while creating or modifying the config object.
 
Resolving the problem
To workaround this issue, you can can pass the attribute in string format (instead of passing an Object Attribute).
Passing an Object Attribute will not throw an exception, however the entry in the variables.xml file will not be in DBCS chars and may look something like this:

c:/twdb\351\351\351\351\351\351dadadada

wsadmin>AdminConfig.modify('(cells/CellName/nodes/Nodename|

variables.xml#VariableSubstitutionEntry_1145537844093)', [['value', 'c:/twdbééééééaaaaa']])

Passing it as a String Attribute will store the DBCS chars as mentioned in the Jython language.

AdminConfig.modify('(cells/acappar1Node01Cell/nodes/acappar1Node01|
variables.xml#VariableSubstitutionEntry_1145537844093)', '[[value c:/twdbééééééaaaaa]]')
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
Historical Number
86815
49R
000
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Administrative Scripting Tools (for example: wsadmin or ANT)
Operating system(s): Windows
Software version: 6.0
Software edition:
Reference #: 1238897
IBM Group: Software Group
Modified date: Jun 1, 2006