The agent's CPINTERNAL code page (that is, the code page used by the agent for its internal processing) must be compatible with the code page of the database it connects to. This is easy to accomplish if the databases's code page is UTF-8.
The agent's CPSTEAM code page (which the -cpstream parameter specifies) must be the same as the agent's CPSTREAM code page (assuming dynamic code-page support is not used).