{"id":5840,"date":"2021-03-01T15:25:06","date_gmt":"2021-03-01T13:25:06","guid":{"rendered":"https:\/\/www.limilabs.com\/blog\/?p=5840"},"modified":"2021-06-07T11:36:00","modified_gmt":"2021-06-07T09:36:00","slug":"mail-dll-add-mandroidi18n-in-xamarin-release-mode","status":"publish","type":"post","link":"https:\/\/www.limilabs.com\/blog\/mail-dll-add-mandroidi18n-in-xamarin-release-mode","title":{"rendered":"Mail.dll &#8211; Add MandroidI18n in Xamarin release mode"},"content":{"rendered":"\n<p>Mail.dll requires multiple encodings to work.<\/p>\n\n\n\n<p>By default in the Release mode, Xamarin applications link only most common encodings. Of course this is not enough to handle multi-national email messages.<\/p>\n\n\n\n<p>If on startup your application receives <em>MissingEncodingException<\/em> error, you need to add <em>MandroidI18n<\/em> into your .csproj (e.g. App1.Android.csproj):<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;MandroidI18n&gt;All&lt;\/MandroidI18n&gt;\n<\/pre><\/div>\n\n\n<p>You might need to unload the project  first  to be able to edit it:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"137\" src=\"https:\/\/www.limilabs.com\/blog\/wp-content\/uploads\/2021\/02\/MandroidI18n.png\" alt=\"\" class=\"wp-image-5843\" srcset=\"https:\/\/www.limilabs.com\/blog\/wp-content\/uploads\/2021\/02\/MandroidI18n.png 652w, https:\/\/www.limilabs.com\/blog\/wp-content\/uploads\/2021\/02\/MandroidI18n-300x63.png 300w\" sizes=\"(max-width: 652px) 100vw, 652px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Alternatively you can go to:<\/p>\n\n\n\n<p><strong>Android project -> Properties -> Android Options<\/strong><\/p>\n\n\n\n<p>and select all possible encodings in:<\/p>\n\n\n\n<p><strong>Linker properties -> Additional supported encodings<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.limilabs.com\/blog\/wp-content\/uploads\/2021\/06\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"366\" src=\"https:\/\/www.limilabs.com\/blog\/wp-content\/uploads\/2021\/06\/image.png\" alt=\"\" class=\"wp-image-5855\" srcset=\"https:\/\/www.limilabs.com\/blog\/wp-content\/uploads\/2021\/06\/image.png 665w, https:\/\/www.limilabs.com\/blog\/wp-content\/uploads\/2021\/06\/image-300x165.png 300w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Mail.dll requires multiple encodings to work. By default in the Release mode, Xamarin applications link only most common encodings. Of course this is not enough to handle multi-national email messages. If on startup your application receives MissingEncodingException error, you need to add MandroidI18n into your .csproj (e.g. App1.Android.csproj): You might need to unload the project [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[125],"class_list":["post-5840","post","type-post","status-publish","format-standard","hentry","category-mail-dll","tag-xamarin"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/5840"}],"collection":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/comments?post=5840"}],"version-history":[{"count":5,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/5840\/revisions"}],"predecessor-version":[{"id":5857,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/posts\/5840\/revisions\/5857"}],"wp:attachment":[{"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/media?parent=5840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/categories?post=5840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.limilabs.com\/blog\/wp-json\/wp\/v2\/tags?post=5840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}