<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: UserInterface::messageBox and localized (Russian) text in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6348891#M19862</link>
    <description>Thanks!</description>
    <pubDate>Wed, 25 May 2016 16:42:56 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2016-05-25T16:42:56Z</dc:date>
    <item>
      <title>UserInterface::messageBox and localized (Russian) text</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6346580#M19857</link>
      <description>&lt;P&gt;I've tried to create test add-in which show simple message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Ptr&amp;lt;Application&amp;gt; app;   app = Application::get();&lt;BR /&gt;Ptr&amp;lt;UserInterface&amp;gt; ui;  ui = app-&amp;gt;userInterface();&lt;BR /&gt;ui-&amp;gt;messageBox("Dll загружено");&lt;/PRE&gt;
&lt;P&gt;But instead of russian leters I see abrakadabra:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/242146iD1D6792F3F869254/image-size/original?v=v2&amp;amp;px=-1" alt="2016-05-24_18-50-10.png" title="2016-05-24_18-50-10.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to show non-english letters in text with help of UserInterface::messageBox ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 16:24:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6346580#M19857</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2016-05-24T16:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: UserInterface::messageBox and localized (Russian) text</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6347486#M19858</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it’s possible to show non-English letters. You need to encode the string to UTF8 which the API supports. The code below should work with C++ 11.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#include &amp;lt;locale&amp;gt;&lt;BR /&gt;#include &amp;lt;codecvt&amp;gt;

....

std::wstring ws(L"Dll загружено");
std::wstring_convert&amp;lt;std::codecvt_utf8&amp;lt;wchar_t&amp;gt;&amp;gt; converter;
std::string s = converter.to_bytes(ws);
ui-&amp;gt;messageBox(s);&lt;/PRE&gt;
&lt;P&gt;Jack&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 02:29:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6347486#M19858</guid>
      <dc:creator>liujac</dc:creator>
      <dc:date>2016-05-25T02:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: UserInterface::messageBox and localized (Russian) text</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6347739#M19859</link>
      <description>&lt;P&gt;Dear Jack!&lt;/P&gt;
&lt;P&gt;Thank you so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/242300iE4353B92D4DA464B/image-size/original?v=v2&amp;amp;px=-1" alt="2016-05-25_10-40-28.png" title="2016-05-25_10-40-28.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 07:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6347739#M19859</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2016-05-25T07:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: UserInterface::messageBox and localized (Russian) text</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6347972#M19860</link>
      <description>&lt;P&gt;Dear Jack!&lt;/P&gt;
&lt;P&gt;And how to use Russian letters not in C++, but in JavaScript and Python?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.: I'd like to write article in Russian about using non-english letters in Fusion 360 API. So additional information will be very helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 10:29:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6347972#M19860</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2016-05-25T10:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: UserInterface::messageBox and localized (Russian) text</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6348321#M19861</link>
      <description>&lt;P&gt;In Python and JavaScript there's nothing special you need to do because they natively use Unicode strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Russian1.png" alt="Russian1.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/242400iA946794EF8370FE5/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Russian2.png" alt="Russian2.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/242401iC0F0F1A4B90814BD/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 13:32:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6348321#M19861</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-05-25T13:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: UserInterface::messageBox and localized (Russian) text</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6348891#M19862</link>
      <description>Thanks!</description>
      <pubDate>Wed, 25 May 2016 16:42:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/userinterface-messagebox-and-localized-russian-text/m-p/6348891#M19862</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2016-05-25T16:42:56Z</dc:date>
    </item>
  </channel>
</rss>

