質問

How can I send Unicode symbols using SQL Server Database Mail? My goal is to send a symbol on the subject of an email. Let's say that, for example, I want to send this "🚯 Subject with symbol" on the subject. The symbol I want to use come from Segoe UI Emoji font.

Thanks!

役に立ちましたか?

解決

Make sure you always use nvarchar as the data type throughout the whole flow, and always prefix Unicode strings with N. There is a big difference:

enter image description here

ライセンス: CC-BY-SA帰属
所属していません dba.stackexchange
scroll top