C# How to replace Microsoft's Smart Quotes with straight quotation marks?

后端 未结 12 1443
花落未央
花落未央 2020-12-08 00:50

My post below asked what the curly quotation marks were and why my app wouldn\'t work with them, my question now is how can I replace them when my program comes across them,

12条回答
  •  醉酒成梦
    2020-12-08 01:42

    I also have a program which does this, the source is in this file of CP-1252 Fixer. It additionally defines some mappings for converting characters within RTF strings whilst preserving all formatting, which may be useful to some.

    It is also a complete mapping of all "smart quote" characters to their low-ascii counterparts, entity codes and character references.

提交回复
热议问题