UTF-8ã®4ãã¤ãæåã¯ãUnicodeã®æ¡å¼µé åã ã§ããã®é åã®æåã¯Nodeã§ã¯æªå¯¾å¿ãªã®ã ãã©ãã¯ã©ã¤ã¢ã³ãå´ã§ãæ°å¤åç §ãã«å å·¥ãã¡ããã°ãä½ã¨ããªãããããªããï¼ã¨æã£ãã ãJavaScript ã³ã¼ããã¤ã³ããã§ã°ã°ãã°è¦ã¤ãããã®ã¨ã³ããªå ã®ã³ã¼ãã¨çµã¿åãããã // toNumericCharacterReference for SMP(Supplementary Multilingual Plane) String.prototype.toNCRef = function() { return this.replace(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g, function($0, $1){ return '&#x' + String($1).toCodePoints()[0].toString(16) + ';'; }) };
{{#tags}}- {{label}}
{{/tags}}