IBM i Global

IBM i Global

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  cpytopcd ith special characters Ü

    Posted Thu January 23, 2025 04:11 PM

    Hello, we tried to make a cpytopcd but when there is a special character like Ü inside the document it sends us a completely different character. How can we solve this? As additional information, when we execute a client access transfer and use the ANSI value, the document is generated correctly.
    Regards.



    ------------------------------
    Miguel Peralta
    ------------------------------


  • 2.  RE: cpytopcd ith special characters Ü

    Posted Thu January 23, 2025 04:39 PM

    Hi Miguel - try reading this document and see if this helps explain the situation and if it offers a solution to your issue

    Data Transfer: CPYTOPCD and CPYFRMPCD Translation Commands



    ------------------------------
    Rich Malloy
    ------------------------------



  • 3.  RE: cpytopcd ith special characters Ü

    Posted Fri January 24, 2025 01:41 AM

    Dear Miguel

    What is the target SW product that reads the result file of CPYTOPCD?   Is it a SW product running in MS Windows ? If so, you should use CPYTOIMPF command instead as this command support EBCDIC conversion to Unicode encoding that any typical Windows SW product uses.   

    Sample:  CPYTOIMPF FROMFILE(library/pfile) TOSTMF('/folder/file.txt') DTAFMT(*FIXED)  STMFCCSID(1208) RCDDLM(*CRLF)      (CCSID 1208 = UTF-8 or you can try *PCASCII) 

    More samples here:  CPYTOIMPF and CPYFRMIMPF examples at https://www.ibm.com/support/pages/cpytoimpf-and-cpyfrmimpf-examples      



    ------------------------------
    Satid S
    ------------------------------