<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">If you run the XXD command it will print out the hex values, which is the important thing (as opposed to a screenshot which doesn’t have that information). For example, it might be using UTF-16 or some other variation.<div class=""><br class=""></div><div class="">Can you open Terminal and run&nbsp;<div class="gmail_extra"><div class="gmail_quote"><br class=""></div><div class="gmail_quote">xxd &lt; test.swift</div></div><div class=""><br class=""></div><div class="">and then copy/paste the text into a mail response? Then we can figure out what’s wrong.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Alex</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 4 Dec 2015, at 11:41, Bee &lt;<a href="mailto:bee.ography@gmail.com" class="">bee.ography@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Here's the screen capture:&nbsp;<a href="http://i.imgur.com/0ud0hE4.png" class="">http://i.imgur.com/0ud0hE4.png</a><div class=""><br class=""></div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Fri, Dec 4, 2015 at 1:29 PM, Dmitri Gribenko<span class="Apple-converted-space">&nbsp;</span><span dir="ltr" class="">&lt;<a href="mailto:gribozavr@gmail.com" target="_blank" class="">gribozavr@gmail.com</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;">Hi Bee,<br class=""><span class=""><br class="">On Thu, Dec 3, 2015 at 9:00 PM, Bee &lt;<a href="mailto:bee.ography@gmail.com" class="">bee.ography@gmail.com</a>&gt; wrote:<br class="">&gt;<br class="">&gt; Hi,<br class="">&gt;<br class="">&gt; Just successfully installed Swift on my Linux machine. It went well and a Hello World program compiled successfully. However, when I tried to put an emoji inside of the string, it failed compiling. The error message is:<br class="">&gt;<br class="">&gt; $ swiftc test.swift<br class="">&gt; test.swift:1:32: error: invalid UTF-8 found in source file<br class=""><br class=""></span>This might be a clue... how did you insert the emoji?<br class=""><span class=""><br class="">&gt; print("Hello World from Swift! ")<br class="">&gt; test.swift:1:35: error: invalid UTF-8 found in source file<br class="">&gt; print("Hello World from Swift! ")<br class="">&gt; test.swift:1:1: error: 'print' is unavailable: Please wrap your tuple argument in parentheses: 'print((...<br class="">&gt; ))'<br class="">&gt; print("Hello World from Swift! ")<br class="">&gt; Swift.print:2:13: note: 'print' has been explicitly marked unavailable here<br class="">&gt; public func print&lt;T&gt;(_: T)<br class="">&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^<br class=""><br class=""></span>Could you post the output of:<br class=""><br class="">$ xxd &lt; test.swift<br class=""><br class="">since it looks like mail has mangled the emoji and I'm not seeing it<br class="">in your message.<br class=""><span class="HOEnZb"><font color="#888888" class=""><br class="">Dmitri<br class=""><br class="">--<br class="">main(i,j){for(i=2;;i++){for(j=2;j&lt;i;j++){if(!(i%j)){j=0;break;}}if<br class="">(j){printf("%d\n",i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" class="">gribozavr@gmail.com</a>&gt;*/<br class=""></font></span></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space">&nbsp;</span><br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class="">-Bee-<br class=""><br class=""></div></div></div></div><img src="https://u2002410.ct.sendgrid.net/wf/open?upn=4UsVFgIJDmjEl1-2Bp4dkDdfPyHFijFe3gbZsM1qGcraXV0qeR0RkaHKTYxwcpO45BXkSyeNS6efAOa4ZoIHKpoy309cPuySkQnhtfsuNDQ-2Bd3jaafEZnCPNZX7rdqj0yeU-2BYMtvYjpBv5JnmLzb7wwN5OHOFNn-2BKCJ05uEuGmrBeM-2F0UYtQTTm6lWbieSqMvIS8ScHEoDkdFuVILT9REKEvxzDD1jypR1-2BpNDLG-2BM2QY-3D" alt="" width="1" height="1" border="0" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; height: 1px !important; width: 1px !important; border-width: 0px !important; margin: 0px !important; padding: 0px !important;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><span class="Apple-converted-space">&nbsp;</span>_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">swift-users mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:swift-users@swift.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">swift-users@swift.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.swift.org/mailman/listinfo/swift-users</a></div></blockquote></div><br class=""></div></div></body></html>