I am trying to insert a pound symbol in a text email using .net, but it looks like  £
Any ideas how I can fix this?
thank
The only way to make it work is to make sure that you encode the email with the same character encoding as with its decryption. In this case, you encode the email in UTF-8, but decode it as if it were Latin-1. This may be redundant for this case, but the Absolute Minimum Every software developer, absolutely sure, should know about Unicode and character sets , is a good indication.
One solution is to add Content-Type: text/plain; charset=UTF-8as a title.
Content-Type: text/plain; charset=UTF-8
Make sure the declared email character encoding matches the character encoding you are using.
, , .
, , - , : -).
, ( Unicode, ASCII, , ), , .
P.S. . :
, Unicode ( !)
, , , , , . " ", HTML.
, "Content-Type: text/plain; charset = UTF-8" . :
"Content-Type: text/plain; charset = 'UTF-8'"
Of course, several other encodings will work just fine.
Depends on how you insert it, but a few options ...
$
or
Convert.ToChar(35);
Source: https://habr.com/ru/post/1767328/More articles:C: fscanf - infinite loop when the first character matches - cМесто инфраструктуры Entity 4.0 + POCO + WCF в DDD "мир" - domain-driven-designC # - Simple check - DialogResult - c #Apache SSL Multiuser Domain - sslЗапрос о синтаксисе, используемый в файле заголовка для программирования сокетов - cValues of hexadecimal registers? x86 - assemblyZend_Dojo_Form in the layout - dojoRecommended Java EE profiling method deployed in JBoss AS 5 - javaZend_Dojo_Form not rendering in layout - dojoМожно ли получить доступ к атрибутам первого объекта в списке в шаблонах Django? - djangoAll Articles