File character set converter

3
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_s et Character set for the file to be converted (source). destination_f ile Path and file name for the (destination) file after it is converted.

Transcript of File character set converter

Page 1: File character set converter

File Character Set ConverterThe File Character Set Converter converts individual files, one at a time, from onecharacter set to another. You may need to perform this task to convert text files youreceive from Oracle to the character set used by your system. For example, you mightneed 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 Convertermanually. AD Administration, AutoPatch, and Rapid Install willnormally perform any required character set conversion automatically.

File Character Set Converter Parameterssource_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) fileafter it is converted.

dest_char_set Character set for the converted (destination)file.

The File Character Set Converter Interface:

Page 2: File character set converter

The File Character Set Converter is a command line utility. It does not use menus orinput 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 thatdefine your system. This task is common to many AD utilities. See Setting theEnvironment, 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 thesource file's directory and the APPLTMP directory are on the same file system. Ingeneral, 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 adifferent file name, or change APPLTMP to a directory on the samefile system as the source file directory.For example, to convert the file afdict.ldt from the WE8ISO8859P1 character set tothe 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