Share this page

# kCharConverter.sh

The kCharConverter.sh script is used to convert the character set of a file to a different character set. If no source encoding has been specified. he script uses the default character set of the system It will convert it to the character set specified by destEnc.

Examples

    sh ./kCharConverter.sh [-p] [-escape <sourceFile> <destFile> <encoding>]
    sh ./kCharConverter.sh [-p] [-unescape <sourceFile> <destFile> <encoding>]
    sh ./kCharConverter.sh [-p] [-escape <sourceFile> <destFile> <encoding>]

where

-p | Prints the default encoding
-convert | Converts the source file from the source encoding to the destination encoding and writes the result to the destination file.
-escape | Converts the source file from the given encoding to a Latin-1 encoding and escapes to Unicode.
-unescape | Converts the source file from Latin-1 encoding to the specified encoding and replaces all the escape
    Source_File
| represents the original character file name
    Dest_File
| represents the new file name
    Source_Enc
| represents the original character set encoding for the file
    Dest_Enc
| represents the new character set encoding you are setting for the file

If you do not specify the source encoding, the script uses the default character set of the system and converts that to the destination character set you specify.

https://admhelp.microfocus.com PPM 8942
Tips to improve your search results... OpenText™ Project and Portfolio Management Help Center PPM Help 26.2-26.3 All View Local Help Center View Online Help Center Version: