<div dir="ltr">Oh, I&#39;m sorry… I also have conversation with another member of the list, but we forget to include the list address on the mail target so our conversation going private.<div><br></div><div><span style="font-size:13px">FYI, I installed swift on my Koding VM (ubuntu 64bit) from </span><a href="http://koding.com/" target="_blank" style="font-size:13px">koding.com</a><span style="font-size:13px">. It has an online code editor. Their editor still has problem handling unicode.</span><br></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Hope this will clear all things.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Thank you.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 4, 2015 at 5:52 PM, Bee <span dir="ltr">&lt;<a href="mailto:bee.ography@gmail.com" target="_blank">bee.ography@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Here it is:<div><br></div><div><div>$ xxd &lt; test.swift                                                                          </div><div>0000000: 7072 696e 7428 2248 656c 6c6f 2057 6f72  print(&quot;Hello Wor</div><div>0000010: 6c64 2066 726f 6d20 5377 6966 7421 20ed  ld from Swift! .</div><div>0000020: a0bd edb8 8020 2229                      ..... &quot;)</div></div><div><br></div><div>I&#39;ve asked Koding dev and they said their editor also has problem handling unicode. They believe the problem is with the editor, not swift. They suggest to prevent using unicode directly inside the code, and use the unicode code instead. So, I think the problem has been cleared, although the ideal solution is currently being worked on.</div><div><br></div><div>Thank you.</div><div><br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Fri, Dec 4, 2015 at 5:46 PM, Alex Blewitt <span dir="ltr">&lt;<a href="mailto:alex.blewitt@gmail.com" target="_blank">alex.blewitt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">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><br></div><div>Can you open Terminal and run <div class="gmail_extra"><div class="gmail_quote"><br></div><div class="gmail_quote">xxd &lt; test.swift</div></div><div><br></div><div>and then copy/paste the text into a mail response? Then we can figure out what’s wrong.</div><div><br></div><div>Thanks,</div><div><br></div><div>Alex</div><div><br><div><blockquote type="cite"><div><div><div>On 4 Dec 2015, at 11:41, Bee &lt;<a href="mailto:bee.ography@gmail.com" target="_blank">bee.ography@gmail.com</a>&gt; wrote:</div><br></div></div><div><div><div><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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Here&#39;s the screen capture: <a href="http://i.imgur.com/0ud0hE4.png" target="_blank">http://i.imgur.com/0ud0hE4.png</a><div><br></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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br><div class="gmail_quote">On Fri, Dec 4, 2015 at 1:29 PM, Dmitri Gribenko<span> </span><span dir="ltr">&lt;<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>&gt;</span><span> </span>wrote:<br><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><span><br>On Thu, Dec 3, 2015 at 9:00 PM, Bee &lt;<a href="mailto:bee.ography@gmail.com" target="_blank">bee.ography@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hi,<br>&gt;<br>&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>&gt;<br>&gt; $ swiftc test.swift<br>&gt; test.swift:1:32: error: invalid UTF-8 found in source file<br><br></span>This might be a clue... how did you insert the emoji?<br><span><br>&gt; print(&quot;Hello World from Swift! &quot;)<br>&gt; test.swift:1:35: error: invalid UTF-8 found in source file<br>&gt; print(&quot;Hello World from Swift! &quot;)<br>&gt; test.swift:1:1: error: &#39;print&#39; is unavailable: Please wrap your tuple argument in parentheses: &#39;print((...<br>&gt; ))&#39;<br>&gt; print(&quot;Hello World from Swift! &quot;)<br>&gt; Swift.print:2:13: note: &#39;print&#39; has been explicitly marked unavailable here<br>&gt; public func print&lt;T&gt;(_: T)<br>&gt;             ^<br><br></span>Could you post the output of:<br><br>$ xxd &lt; test.swift<br><br>since it looks like mail has mangled the emoji and I&#39;m not seeing it<br>in your message.<br><span><font color="#888888"><br>Dmitri<br><br>--<br>main(i,j){for(i=2;;i++){for(j=2;j&lt;i;j++){if(!(i%j)){j=0;break;}}if<br>(j){printf(&quot;%d\n&quot;,i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>&gt;*/<br></font></span></blockquote></div><br><br clear="all"><div><br></div>--<span> </span><br><div><div dir="ltr"><div>-Bee-<br><br></div></div></div></div></div></div><span><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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;min-height:1px!important;width:1px!important;border-width:0px!important;margin:0px!important;padding:0px!important"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"><span> </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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a></span></div></blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div>-Bee-<br><br></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>-Bee-<br><br></div></div></div>
</div>