Kconv ã ã¨ä½è¨ãªæ£è¦åãå ¥ã£ããããã¨ãããææãããã ããã®ã§ (æç¬ãããããã¨ããããã¾ã)ãã¾ããã«ãµãã²ã¼ããã¢ãè¨ç®ãããã¨ã«ãã¾ããããããªæãã def js_unicode_escape(text) text.unpack('U*').map{ |num| if(num < 0x10000) format('\\u%04x', num) else num -= 0x10000 upper = num / 0x400 + 0xD800 lower = num % 0x400 + 0xDC00 format('\\u%04x\\u%04x', upper, lower) end } end
{{#tags}}- {{label}}
{{/tags}}