Absent Member.
Absent Member.
8561 views

What is the character encoding used by teamscript Ext.WriteTextFile function?


What is the default or determines the character encoding used by teamscript Ext.WriteTextFile fuction?
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: What is the character encoding used by teamscript Ext.WriteTextFile function?


When attempting to replicated some teamscript functionality using web services I notices the files created by the web service were double the size of the files created by a teamscript doing the same thing (creating an attachment record for a primary or auxiliary item). Upon examination I realized that I was encoding the attachments using UTF-8 in the web service and I was curious as to the default encoding for teamscript. Does it take the system default? or use ASCII all the time? or something else?
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: What is the character encoding used by teamscript Ext.WriteTextFile function?


I use it for diagnostic logging and it seems to be straight ASCII text on our systems. The file name I'm logging to is "Teamscript.log". Here's the file association data from one of the servers:

C:\>assoc .log
.log=txtfile
C:\>ftype txtfile
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.