Created
October 9, 2012 01:32
-
-
Save naoyat/3856038 to your computer and use it in GitHub Desktop.
surrogate pair test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>surrogate pair test</title> | |
</head> | |
<body> | |
<p>"<span id="sample">𠀋</span>"</p><!-- U+2000B --> | |
<script type="text/javascript"> | |
var s = document.getElementById("sample").innerHTML; | |
document.write("<hr>"); | |
document.write("length="+ s.length +"<br>"); | |
document.write(s.charCodeAt(0).toString(16) + " " + s.charCodeAt(1).toString(16)); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment