How to Add Byte-Order-Mark BOM Codes to a STMF ... - IBM

文章推薦指數: 80 %
投票人數:10人

CPYTOIMPF does not add BOM codes to a UTF-8 streamfile to clearly identify it as a UTF-8 file on other platforms. This document includes information on how ... IBMSupport   Noresultswerefoundforyoursearchquery. Tips Toreturnexpectedresults,youcan: Reducethenumberofsearchterms.Eachtermyouusefocusesthesearchfurther. Checkyourspelling.Asinglemisspelledorincorrectlytypedtermcanchangeyourresult. Trysubstitutingsynonymsforyouroriginalterms.Forexample,insteadofsearchingfor"javaclasses",try"javatraining" DidyousearchforanIBMacquiredorsoldproduct?Ifso,followtheappropriatelinkbelowtofindthecontentyouneed. Ourapologies Searchresultsarenotavailableatthistime.Pleasetryagainlateroruseoneoftheothersupportoptionsonthispage. HowtoAddByte-Order-MarkBOMCodestoaSTMFCreatedbyCPYTOIMPFinUTF-8 Troubleshooting Problem CPYTOIMPFdoesnotaddBOMcodestoaUTF-8streamfiletoclearlyidentifyitasaUTF-8fileonotherplatforms.Thisdocumentincludesinformationonhowtoaddthem. ResolvingTheProblem CPYTOIMPFdoesnotaddBOMcodestoaUTF-8streamfiletoclearlyidentifyitasaUTF-8fileonotherplatforms.Thisdocumentincludesinformationonhowtoaddthem. CPYTOIMPFwasusedtocreateanexportstreamfileinUTF-8(CCSID1208)format.Whenthefilecontainedspecialcharacterssuchasumlauts,thereceivingapplicationcorrectlyidentifiedtheUTF-8encoding.However,withonlyplainLatincharacters,thetargetapplicationassumedANSIencodingandrefusedtheimport.BOMcharacters(seeByteOrderMark(BOM)FAQ)weremissingtouniquelyidentifythefieldcontents. ThefollowingarevalidBOMcharacters: BOMS Hexvalues UTF-32BE(020) 0000FEFF UTF-32LE(030) FFFE0000 UTF-16BE(040) FEFF UTF-16LE(050) FFFE UTF-8(060) EFBBBF Youshoulddothefollowingtocorrectthisissue: 1. CreateaUTF-8streamfilewiththecorrectUTF-8BOMcharactersX'EFBBBF'.(makesuretheSTMFisCCSID1208andthecontentsisunchanged): WindowsNotepadcanbeusedtogeneratethatfile.Youshouldopenanew,emptyfileanduseSaveAstospecifyUTF-8format: utf8bom.zip 2. Typethefollowingaheadoftheexportfile: CPYOBJ('utf8bom.txt') TOOBJ('newfile.txt') FROMCCSID(1208) TOCCSID(1208) REPLACE(*YES) CPYTOIMPFFROMFILE(

) TOSTMF('newfile.txt') STMFCCSID(1208)(orforV5R4:STMFCODPAG(1208)) MBROPT(*ADD) [{"Type":"MASTER","LineofBusiness":{"code":"LOB57","label":"Power"},"BusinessUnit":{"code":"BU058","label":"IBMInfrastructurew\/TPS"},"Product":{"code":"SWG60","label":"IBMi"},"Platform":[{"code":"PF012","label":"IBMi"}],"Version":"7.1.0"}] HistoricalNumber 629017082 Wasthistopichelpful? NotusefulUseful DocumentInformation Modifieddate: 19September2022 UID nas8N1011066 PageFeedback Shareyourfeedback Needsupport? SubmitfeedbacktoIBMSupport 1-800-IBM-7378(USA) Directoryofworldwidecontacts


請為這篇文章評分?