.,'\"[]{}|&()$!";var
Lb=(this.getDescendantOfName(b?"jsxsetting_xmloutputcharset":"jsxsetting_outputcharset")).getValue();var
ha=jsx3.ide.getHomeRelativeFile(b?".tmp.charsettest.xml":".tmp.charsettest");var
sa=this.getAncestorOfType(jsx3.gui.Dialog);var
rb=Lb?"the character encoding '"+Lb+"'":"the default character encoding";var
Hb=null;if(b){var
ib=new
jsx3.xml.Document();ib.loadXML("");(ib.getRootNode()).setAttribute("jsxid",ca);Hb=ib.serialize(true,Lb);}else Hb=ca+"\n";if(ha.write(Hb,{charset:Lb})){var
G=null;if(b){var
ua=new
jsx3.xml.Document();ua.load(ha.toURI());if(ua.hasError()){sa.alert("Test Failure","A test file was written using "+rb+" but reading the file caused an error: "+ua.getError());return;}else G=(ua.getRootNode()).getAttribute("jsxid");}else G=jsx3.util.strTrim(ha.read());if(G==ca){sa.alert("Test Success","A test file was successfully written using "+rb+".");ha.deleteFile();}else sa.alert("Test Failure","A test file was written using "+rb+" but reading the file failed ("+G+").");}else sa.alert("Test Failure","A test file could not be written using "+rb+". Check the system log for a more detailed message.");};]]>