Closed ShepBook closed 11 years ago
Comments?
å 😄
å 😄
posting comment from safari
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Entities.EscapeMode;
import org.junit.Test;
public class UF84bytes {
@Test
public void blah() {
String s = "å 😄";
Document d = Jsoup.parseBodyFragment(s);
d.outputSettings().charset("UTF-8").escapeMode(EscapeMode.xhtml);
System.out.println(d.html());
}
}
i expect this output
<html>
<head></head>
<body>
å 😄
</body>
</html>
but i get
<html>
<head></head>
<body>
å ��
</body>
</html>
å 😄
This is what the issue and comment looks like that you posted:
This is the correct content of the test case, viewed in TextEdit on Mac OS X 10.8
Just goto http://en.wikipedia.org/wiki/Emoji choose one of the chars and try to post it. It will silently fail you. Maybe Emojis are not important but i guess other languages have characters in the utf 8 supplementary range as well.
Imma just put this here...
i expect this output
but i get
And how about some without backticks?
å 😄