Apparently, all of these are valid javascript characters and I want to start using them as var names, but how do I type them into my text editor?
显然,所有这些都是有效的javascript字符,我想开始使用它们作为var名称,但如何在文本编辑器中键入它们?
I tried googling a unicode and how to type in unicode characters to no avail.
我尝试使用googling unicode以及如何键入unicode字符无济于事。
1 个解决方案
#1
7
Many of the characters listed in the cited page are in Plane 1, i.e. outside the Basic Multilingual Plane (BMP), informally characterized as “16-bit subset of Unicode”. According to the ECMAScript standard, an implementation may support characters outside the BMP, but it need not. In fact, it only requires support to characters that were defined in Unicode version 3.0. Other characters may be used, but they may cause portability issues. In practice, modern JavaScript implementations support full Unicode.
引用页面中列出的许多字符在平面1中,即在基本多语言平面(BMP)之外,非正式地表征为“16位Unicode的子集”。根据ECMAScript标准,实现可能支持BMP之外的字符,但它不需要。实际上,它只需要支持Unicode 3.0版中定义的字符。可能会使用其他字符,但它们可能会导致可移植性问题。实际上,现代JavaScript实现支持完整的Unicode。
How you type characters depends on your text editor and on other software. There are, for example, utilities that let you enter characters with some special key combinations, either directly inserting them into the current point of insertion or adding them to the clipboard.
键入字符的方式取决于文本编辑器和其他软件。例如,有一些实用程序可以让您输入带有一些特殊键组合的字符,可以直接将它们插入当前插入点或将它们添加到剪贴板。
As far as I know, the only tool that lets you type any Unicode character is my full Unicode input utility. Your editor might have a more integrated tool, but most text editors are rather primitive in Unicode input. Check out Alan Wood’s page Unicode and Multilingual Editors and Word Processors.
据我所知,唯一允许您键入任何Unicode字符的工具是我的完整Unicode输入实用程序。您的编辑器可能有一个更集成的工具,但大多数文本编辑器在Unicode输入中相当原始。查看Alan Wood的页面Unicode和多语言编辑器和Word处理器。
#1
7
Many of the characters listed in the cited page are in Plane 1, i.e. outside the Basic Multilingual Plane (BMP), informally characterized as “16-bit subset of Unicode”. According to the ECMAScript standard, an implementation may support characters outside the BMP, but it need not. In fact, it only requires support to characters that were defined in Unicode version 3.0. Other characters may be used, but they may cause portability issues. In practice, modern JavaScript implementations support full Unicode.
引用页面中列出的许多字符在平面1中,即在基本多语言平面(BMP)之外,非正式地表征为“16位Unicode的子集”。根据ECMAScript标准,实现可能支持BMP之外的字符,但它不需要。实际上,它只需要支持Unicode 3.0版中定义的字符。可能会使用其他字符,但它们可能会导致可移植性问题。实际上,现代JavaScript实现支持完整的Unicode。
How you type characters depends on your text editor and on other software. There are, for example, utilities that let you enter characters with some special key combinations, either directly inserting them into the current point of insertion or adding them to the clipboard.
键入字符的方式取决于文本编辑器和其他软件。例如,有一些实用程序可以让您输入带有一些特殊键组合的字符,可以直接将它们插入当前插入点或将它们添加到剪贴板。
As far as I know, the only tool that lets you type any Unicode character is my full Unicode input utility. Your editor might have a more integrated tool, but most text editors are rather primitive in Unicode input. Check out Alan Wood’s page Unicode and Multilingual Editors and Word Processors.
据我所知,唯一允许您键入任何Unicode字符的工具是我的完整Unicode输入实用程序。您的编辑器可能有一个更集成的工具,但大多数文本编辑器在Unicode输入中相当原始。查看Alan Wood的页面Unicode和多语言编辑器和Word处理器。