pdm_uconv--Convert Local Charset to UTF-8

The pdm_uconv utility assists you in converting data from previous releases of CA SDM or integrations with other CA Technologies products. The most common usage of this utility is to convert from a local charset to UTF-8 and from UTF-8 to a local charset.
casm173
The pdm_uconv utility assists you in converting data from previous releases of CA SDM or integrations with other CA Technologies products. The most common usage of this utility is to convert from a local charset to UTF-8 and from UTF-8 to a local charset.
Syntax
This command has the following format:
pdm_uconv -h [-V] [-s] [-v] [-l | --list-code | --default-code | -L] [--cannon] [-x] [--to-callback | -c] [--from-callback | -i] [--fallback | --no-fallback] [-b] [-f] [--t] [--add-signature] [--remove-signature] [-o] [file ...]
  • -h
    Opens the help menu.
  • -V
    Prints the program version.
  • -s
    Uses silent operation and suppresses messages.
  • -v
    Displays the progress information of the utility.
  • -l
    Lists all available encoding. The following are valid:
    • --list-code
      Lists only the given encoding.
    • --default-code
      Lists only the default encoding.
    • -L
      Lists all available transliterators.
  • --cannon
    Prints the list in cnvrtrs.txt(5) format.
  • -x
    Runs the progress through transliteration.
  • --to-callback
    callback
    Uses callback on destination encoding.
  • -c
    Omits invalid characters from the output.
  • --from-callback
    callback
    Uses callback on original encoding.
  • -i
    Ignores invalid sequences in the input.
  • --callback
    callback
    Uses callback on both encoding.s.
  • -b
    Specifies the block size.
    Default:
    4096
  • --fallback
    Uses fallback mapping.
  • --no-fallback
    Does not use fallback mapping.
  • -f
    Sets theoriginal encoding.
  • -t
    Sets the destination encoding.
  • --add-signature
    Adds U+FEFF Unicode signature character (BOM).
  • --remove-signature
    Removes U+FEFF Unicode signature character (BOM)
  • -o
    Writes output to file.
Examples:
  • From local charset to UTF-8
    pdm_uconv -t utf-8 inputfile.txt > outputfile.txt
  • From specific charset (iso-2022-jp) to UTF-8
    pdm_uconv -f iso-2022-jp -t utf-8 inputfile.txt > outputfile.txt
  • From UTF-8 to local charset
    pdm_uconv -f utf-8 inputfile.txt > outputfile.txt
  • From UTF-8 to specific charset
    pdm_uconv -f utf-8 -t iso-2022-jp inputfile.txt > outputfile.txt
The pdm_uconv utility has the following are valid callbacks:
  • substitute
  • skip
  • stop
  • escape
  • escape-icu
  • escape-java
  • escape-c
  • escape-xml
  • escape-xml-hex
  • escape-xml-dec
  • escape-unicode