|
StringConverter is an win32 console
and COM component free
software
Features :
-
Convert a FILE or a string from/to
ANSI, OEM, BASE64, UNICODE
-
Usable either from command-line or
from as a COM Component inside a script
-
Allow Raw encoding of Unicode
strings (like described in Q263991 to change Password with LDIF or
LDAP in Active Directory)
Liked it ? :
Command Line Mode:
stringconverter string | input_file output_file [options)]
options:
| /UNICODE |
convert the file to UNICODE (not applicable to string) |
| /OEM |
Convert the file or the string to OEM format |
| /ANSI |
Convert the file or the string to ANSI format
from OEM or from UNICODE |
| /ENCODE |
Encode the string or file to Base64 |
| /DECODE |
Decode the string or file from Base64 |
| /NORAW |
While Encoding a Unicode file, transform Unicode into
ANSI |
| /RegServer |
Register as a COM Component |
| /UnregServer |
De-register the COM Component |
| /NOSIGNATURE |
used if you do not want stringconverter to insert the
unicode signature (0xFF 0xFE) at the beginning of the output file when
using /UNICODE |
| /FORCEUNICODE |
is used when unicode files do not have a unicode
header (0xFF 0xFE) in the source file |
You can use several options at the same time
ex : Encode a string :
stringconverter Mystring /encode
==> TXlzdHJpbmd=
Encode and Unicode a string :
stringconverter \"MyPassword\" /encode /unicode
==> IgBNAHkAUABhAHMAcwB3AG8AcgBkACIA ("MyPassword" transformed to Unicode and then encoded)
Transform a file to Unicode: stringconverter file1.txt file2.txt /unicode
Encode a file : stringconverter image.gif image.txt /encode COM Automation (script ) Mode: First register the component : stringconverter /RegServer Then write a VBScript like this : dim obj
Set obj=createobject("stringconverter.convertstring")
wscript.echo obj.Encode("myvalue") ' Encode and Unicode My Password to change it with LDIFDE
wscript.echo obj.EncodeAndUnicode("""MyPassword""")
' test the Encode/Decode cycle
wscript.echo obj.Decode(obj.Encode("myvalue"))
obj.FileEncode("d:\temp\1.txt","d:\temp\2.txt")'
obj.FileUnicode("file1","file2")
obj.FileAnsi("file1","file2")
obj.FileOem("file1","file2")
Questions
? : (use this to contact me)
|