<div dir="ltr">Here's the screen capture: <a href="http://i.imgur.com/0ud0hE4.png">http://i.imgur.com/0ud0hE4.png</a><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 4, 2015 at 1:29 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bee,<br>
<span class=""><br>
On Thu, Dec 3, 2015 at 9:00 PM, Bee <<a href="mailto:bee.ography@gmail.com">bee.ography@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> 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>
><br>
> $ swiftc test.swift<br>
> 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 class=""><br>
> print("Hello World from Swift! ")<br>
> test.swift:1:35: error: invalid UTF-8 found in source file<br>
> print("Hello World from Swift! ")<br>
> test.swift:1:1: error: 'print' is unavailable: Please wrap your tuple argument in parentheses: 'print((...<br>
> ))'<br>
> print("Hello World from Swift! ")<br>
> Swift.print:2:13: note: 'print' has been explicitly marked unavailable here<br>
> public func print<T>(_: T)<br>
> ^<br>
<br>
</span>Could you post the output of:<br>
<br>
$ xxd < test.swift<br>
<br>
since it looks like mail has mangled the emoji and I'm not seeing it<br>
in your message.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</font></span></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>