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.
casm1401
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 ...]
- -hOpens the help menu.
- -VPrints the program version.
- -sUses silent operation and suppresses messages.
- -vDisplays the progress information of the utility.
- -lLists all available encoding. The following are valid:
- --list-codeLists only the given encoding.
- --default-codeLists only the default encoding.
- -LLists all available transliterators.
- --cannonPrints the list in cnvrtrs.txt(5) format.
- -xRuns the progress through transliteration.
- --to-callbackcallbackUses callback on destination encoding.
- -cOmits invalid characters from the output.
- --from-callbackcallbackUses callback on original encoding.
- -iIgnores invalid sequences in the input.
- --callbackcallbackUses callback on both encoding.s.
- -bSpecifies the block size.Default:4096
- --fallbackUses fallback mapping.
- --no-fallbackDoes not use fallback mapping.
- -fSets theoriginal encoding.
- -tSets the destination encoding.
- --add-signatureAdds U+FEFF Unicode signature character (BOM).
- --remove-signatureRemoves U+FEFF Unicode signature character (BOM)
- -oWrites output to file.
Examples:
- From local charset to UTF-8pdm_uconv -t utf-8 inputfile.txt > outputfile.txt
- From specific charset (iso-2022-jp) to UTF-8pdm_uconv -f iso-2022-jp -t utf-8 inputfile.txt > outputfile.txt
- From UTF-8 to local charsetpdm_uconv -f utf-8 inputfile.txt > outputfile.txt
- From UTF-8 to specific charsetpdm_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