File character set converter

2
File Character Set Converter The File Character Set Converter converts individual files, one at a time, from one character set to another. You may need to perform this task to convert text files you receive from Oracle to the character set used by your system. For example, you might need to convert SQL*Plus scripts, PL/SQL scripts, loader files, driver files, ODF files, header files, or HTML files. Tip: In general, you do not need to run File Character Set Converter manually. AD Administration, AutoPatch, and Rapid Install will normally perform any required character set conversion automatically. File Character Set Converter Parameters source_file Path and file name for the (source) file to be converted. source_char_set Character set for the file to be converted (source). destination_file Path and file name for the (destination) file after it is converted. dest_char_set Character set for the converted (destination) file.

Transcript of File character set converter

Page 1: File character set converter

File Character Set Converter The File Character Set Converter converts individual files, one at a time, from one character set to another. You may need to perform this task to convert text files you receive from Oracle to the character set used by your system. For example, you might need to convert SQL*Plus scripts, PL/SQL scripts, loader files, driver files, ODF files, header files, or HTML files. Tip: In general, you do not need to run File Character Set Converter manually. AD Administration, AutoPatch, and Rapid Install will normally perform any required character set conversion automatically. File Character Set Converter Parameters source_file

Path and file name for the (source) file to be converted.

source_char_set

Character set for the file to be converted (source).

destination_file

Path and file name for the (destination) file after it is converted.

dest_char_set

Character set for the converted (destination) file.

Page 2: File character set converter

The File Character Set Converter Interface: The File Character Set Converter is a command line utility. It does not use menus or input screens. Running the File Character Set Converter: To run this utility, perform these steps: 1. Set the environment. You must set the environment in order to apply the environment variables that define your system. This task is common to many AD utilities. See Setting the Environment, page 1-24 in Chapter 1, page 1-viii for the basic steps. 2. Start the utility. Start the File Character Set Converter with this command: $ adncnv <source_file> <source_char_set> <destination_file> <dest_char_set> The path and file name for the source and the destination files can be the same if the source file's directory and the APPLTMP directory are on the same file system. In general, it is simpler and safer to use different source and destination file names. Tip: If you cannot convert to the same file name, convert to a different file name, or change APPLTMP to a directory on the same file system as the source file directory. For example, to convert the file afdict.ldt from the WE8ISO8859P1 character set to the UTF8 character set, you would enter commands as shown in this example: UNIX $ cd $FND_TOP/patch/115/import/<language> $ cp afdict.ldt afdict.old $ adncnv afdict.old we8iso8859p1 afdict.ldt utf8