sendgrid-csharp icon indicating copy to clipboard operation
sendgrid-csharp copied to clipboard

Chinese Character in AddSubstitution

Open chojowliu opened this issue 12 years ago • 3 comments

Chinese characters work fine in .Subject .Html .Text, but when I tried to use AddSubsitution with Chinese characters, I kept getting wrong encoding in the result. Any idea?

chojowliu avatar Oct 23 '14 23:10 chojowliu

I experienced this same issue with AddSubstitution when using unicode with Latin characters. (Ã)

bobmclaren avatar Jan 02 '15 16:01 bobmclaren

This is being addressed in smtpapi-csharp and should be fixed soon. The workaround right now is to encode unicode in substitutions values to ASCII escape sequences.

brandonmwest avatar Jan 25 '15 15:01 brandonmwest

Fixed in 5.1.0

brandonmwest avatar Jan 25 '15 20:01 brandonmwest