Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこれをやろうとしています:
ArticleTitle = ArticleTitle.Replace(" - ", "—");
— を取得するには、テキストの前に表示します。うまくいきません。そして登場— 私はここで何をすべきですか?
文字列リテラルに埋め込まれた実際の Unicode 文字を (通常の C# ソース コード規則に従って) 使用し、必要なエスケープまたはエンコードを XML API に処理させます。
ArticleTitle = ArticleTitle.Replace(" - ", "\u8212");