I'm trying to encode a string that has characters not supported by the target encoding (CP 1047).
Is there a standard/common/easy way of mapping those characters to a cp1047 equivalent?
For example, the text has a fancy double quote character (”
) and I want to convert it to the straight double quote ("
).
Obviously I could just do the replace in my code, but is their a better way? Is there an open source tool, or API out there that I don't know about?