Symptom
When using special characters (e.g. ö) in Scripting, CPQ returns error message:
"Unable to translate bytes [F6] at index 0 from specified code page to Unicode."
Environment
SAP SALES CLOUD CPQ
Reproducing the Issue
Have a string with special character and consume it through scripts.
Cause
CPQ uses Python version 2.7, in this version, strings are byte strings, not unicode.
Resolution
To define a different type of enconding, it should be explicitly defined on the Script:
# -*- coding: utf-8 -*-
See Also
Keywords
Python, Scripts, Unicode, Special Character, CPQ , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , Known Error
Product
SAP CPQ 2024